Compare commits
3 Commits
e92b0c4113
...
886b3bc21e
Author | SHA1 | Date |
---|---|---|
Hazel Nova | 886b3bc21e | |
Hazel Nova | 863f140d15 | |
Hazel Nova | 68cd345d75 |
|
@ -177,7 +177,7 @@ class CmdEngage(Command):
|
|||
Initiates an encounter with the selected target
|
||||
"""
|
||||
key = "engage"
|
||||
aliases = ["encounter"]
|
||||
aliases = ["encounter", "fight"]
|
||||
def func(self):
|
||||
if not self.args:
|
||||
self.caller.msg("Usage: engage <target>")
|
||||
|
@ -185,6 +185,9 @@ class CmdEngage(Command):
|
|||
target = self.caller.search(self.args)
|
||||
if not target:
|
||||
return
|
||||
if target == self.caller:
|
||||
self.caller.msg("You can't initiate an encounter with yourself!")
|
||||
return
|
||||
if target.ndb.encounter_handler:
|
||||
target.ndb.encounter_handler.add_character(self.caller)
|
||||
target.ndb.encounter_handler.msg_all(f"{self.caller} joins the encounter")
|
||||
|
|
Loading…
Reference in New Issue