diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-06-07 19:39:37 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-06-17 14:27:48 +0200 |
commit | 5d3104147fd5c3392751b3c3e5cd9644a83335a7 (patch) | |
tree | ae807d002d1c521257ebca6a5dcfd37700dedd25 /src/game-server/monster.h | |
parent | 9c153b3b928166f33bc539611eee004cb0aab259 (diff) | |
download | manaserv-5d3104147fd5c3392751b3c3e5cd9644a83335a7.tar.gz manaserv-5d3104147fd5c3392751b3c3e5cd9644a83335a7.tar.bz2 manaserv-5d3104147fd5c3392751b3c3e5cd9644a83335a7.tar.xz manaserv-5d3104147fd5c3392751b3c3e5cd9644a83335a7.zip |
Changed the attack message to send the attack id.
This is more precise than sending the attack type, that
can be guessed by the client anyway when the type parameter
will be added in the <attack> tag.
This is the server part of Mana issue: #363.
Reviewed-by: Bjorn.
Diffstat (limited to 'src/game-server/monster.h')
-rw-r--r-- | src/game-server/monster.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/monster.h b/src/game-server/monster.h index b9463168..f5d64165 100644 --- a/src/game-server/monster.h +++ b/src/game-server/monster.h @@ -264,9 +264,9 @@ class Monster : public Being void loadScript(const std::string &scriptName); /** - * + * Gets the attack id the being is currently performing. */ - virtual int getAttackType() const + virtual int getAttackId() const { return mCurrentAttack->id; } /** |