summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game-server/being.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp
index bbaa73aa..82457524 100644
--- a/src/game-server/being.cpp
+++ b/src/game-server/being.cpp
@@ -52,13 +52,13 @@ void Being::damage(Damage damage)
{
case DAMAGETYPE_PHYSICAL:
HPloss -= getAttribute(DERIVED_ATTR_PHYSICAL_DEFENCE) / damage.piercing;
- HPloss -= getAttribute(BASE_ATTR_VITALITY);
+ HPloss -= getAttribute(ATTR_EFF_VITALITY);
break;
case DAMAGETYPE_MAGICAL:
- HPloss /= getAttribute(BASE_ATTR_WILLPOWER) + 1;
+ HPloss /= getAttribute(ATTR_EFF_WILLPOWER) + 1;
break;
case DAMAGETYPE_HAZARD:
- HPloss /= getAttribute(BASE_ATTR_VITALITY) + 1;
+ HPloss /= getAttribute(ATTR_EFF_VITALITY) + 1;
break;
case DAMAGETYPE_OTHER:
// nothing to do here