diff options
Diffstat (limited to 'src/game-server/state.cpp')
-rw-r--r-- | src/game-server/state.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game-server/state.cpp b/src/game-server/state.cpp index b6528955..4db5caab 100644 --- a/src/game-server/state.cpp +++ b/src/game-server/state.cpp @@ -229,6 +229,17 @@ static void informPlayer(MapComposite *map, Entity *p) gameHandler->sendTo(p, abilityMsg); } + if (oflags & UPDATEFLAG_ABILITY_ON_DIRECTION) + { + MessageOut abilityMsg(GPMSG_BEING_ABILITY_DIRECTION); + abilityMsg.writeInt16(oid); + auto *abilityComponent = o->getComponent<AbilityComponent>(); + abilityMsg.writeInt8(abilityComponent->getLastUsedAbilityId()); + abilityMsg.writeInt8( + abilityComponent->getLastTargetDirection()); + gameHandler->sendTo(p, abilityMsg); + } + // Send damage messages. if (o->canFight()) { |