diff options
Diffstat (limited to 'src/game-server/monster.cpp')
-rw-r--r-- | src/game-server/monster.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp index d2267412..6b57ff42 100644 --- a/src/game-server/monster.cpp +++ b/src/game-server/monster.cpp @@ -115,14 +115,14 @@ void Monster::perform() { if (mAttackTime == mCurrentAttack->aftDelay) { - // Hard-coded values for now. Damage damage; damage.base = (int) (getModifiedAttribute(BASE_ATTR_PHY_ATK_MIN) * mCurrentAttack->damageFactor); damage.delta = (int) (getModifiedAttribute(BASE_ATTR_PHY_ATK_DELTA) * mCurrentAttack->damageFactor); damage.cth = getModifiedAttribute(BASE_ATTR_HIT); damage.element = mCurrentAttack->element; damage.type = mCurrentAttack->type; - performAttack(damage); + // todo: get the attack range from monster DB + performAttack(mTarget, 64, damage); } if (!mAttackTime) { |