1
0

Entity effects: changed User to Creator, removed pawn pass-by-value

This commit is contained in:
archshift
2014-06-13 10:59:59 -07:00
parent a37d5410b4
commit 68c30790db
6 changed files with 20 additions and 36 deletions

View File

@@ -470,7 +470,7 @@ void cMonster::HandleEntityEffect(cEntityEffect::eType a_EffectType, cEntityEffe
// Undead mobs are damaged by instant health
// Base damage = 6, doubles for every increase in intensity
int damage = (int)(6 * std::pow(2.0, a_Effect.GetIntensity()) * a_Effect.GetDistanceModifier());
TakeDamage(dtPotionOfHarming, a_Effect.GetUser(), damage, 0);
TakeDamage(dtPotionOfHarming, a_Effect.GetCreator(), damage, 0);
return;
}
}