uncloak ninja after attacking (#20892)

* raise MeleeAttackEvent on the user after swinging

* add disable bool to RevealNinja

* uncloak ninja after attacking

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-10-11 03:55:53 +01:00
committed by GitHub
parent 088832a295
commit 6db534ef86
4 changed files with 28 additions and 2 deletions

View File

@@ -426,6 +426,9 @@ public abstract class SharedMeleeWeaponSystem : EntitySystem
DoLungeAnimation(user, weapon.Angle, GetCoordinates(attack.Coordinates).ToMap(EntityManager, TransformSystem), weapon.Range, animation);
}
var attackEv = new MeleeAttackEvent(weaponUid);
RaiseLocalEvent(user, ref attackEv);
weapon.Attacking = true;
return true;
}