diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-03-13 20:02:32 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-03-15 22:53:35 +0100 |
commit | 3a31f9139a8ac4c74113392c76599873c18cea62 (patch) | |
tree | 63999febcc8646b925c26a3bd05b131c645a3499 /src/game-server/monster.cpp | |
parent | 596c34c03d361f6631f73995a454e4f6dac70d97 (diff) | |
download | manaserv-3a31f9139a8ac4c74113392c76599873c18cea62.tar.gz manaserv-3a31f9139a8ac4c74113392c76599873c18cea62.tar.bz2 manaserv-3a31f9139a8ac4c74113392c76599873c18cea62.tar.xz manaserv-3a31f9139a8ac4c74113392c76599873c18cea62.zip |
Eliminated one version of Being::performAttack
There was a version taking an attack range, but the range was always the
same as the one specified in the Damage class.
Diffstat (limited to 'src/game-server/monster.cpp')
-rw-r--r-- | src/game-server/monster.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp index d9083e80..f77cca0b 100644 --- a/src/game-server/monster.cpp +++ b/src/game-server/monster.cpp @@ -156,8 +156,7 @@ void Monster::perform() mCurrentAttack->type, mCurrentAttack->range); - int hit = performAttack(mTarget, mCurrentAttack->range, - dmg); + int hit = performAttack(mTarget, dmg); if (! mCurrentAttack->scriptFunction.empty() && mScript |