summaryrefslogtreecommitdiff
path: root/src/game-server/attack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/attack.cpp')
-rw-r--r--src/game-server/attack.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game-server/attack.cpp b/src/game-server/attack.cpp
index 1825b86a..a1300e4d 100644
--- a/src/game-server/attack.cpp
+++ b/src/game-server/attack.cpp
@@ -75,6 +75,7 @@ AttackInfo *AttackInfo::readAttackNode(xmlNodePtr node)
void Attacks::add(AttackInfo *attackInfo)
{
mAttacks.push_back(Attack(attackInfo));
+ attack_added.emit(*mAttacks.rbegin());
}
void Attacks::remove(AttackInfo *attackInfo)
@@ -86,6 +87,7 @@ void Attacks::remove(AttackInfo *attackInfo)
{
if (mCurrentAttack && mCurrentAttack->getAttackInfo() == attackInfo)
mCurrentAttack = 0;
+ attack_removed.emit(*it);
mAttacks.erase(it);
return;
}