We're not checking that the target is not the same as the attacker - therefore one can enter combat with themselves.
Steps to Reproduce:
type "attack self"
Declare action - for instance, "kick self"
Expected/Actual
I would expect a message of the sort "You can't attack yourself", but instead I'm able to enter combat with myself and I get stuck there. I also get a "stopiteration" traceback:
Traceback (most recent call last):
File "/home/user/Projects/ainneve/evennia/evennia/commands/cmdhandler.py", line 591, in _run_command
ret = cmd.func()
File "./commands/combat.py", line 798, in func
opponents_by_range = ch.get_proximity(caller)
File "./typeclasses/combat_handler.py", line 260, in get_proximity
if character.id in k]:
StopIteration
We're not checking that the target is not the same as the attacker - therefore one can enter combat with themselves.
Steps to Reproduce:
Expected/Actual I would expect a message of the sort "You can't attack yourself", but instead I'm able to enter combat with myself and I get stuck there. I also get a "stopiteration" traceback: