diff options
author | archshift <admin@archshift.com> | 2014-06-13 19:59:59 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-06-17 20:39:22 +0200 |
commit | 68c30790db17b9d21b2fcda4c7edec679162c577 (patch) | |
tree | f9fc6786d61c4700ea5b65f3b93ef920c8f55171 /src/Mobs | |
parent | APIDump: Added OnEntityAddEffect hook documentation. (diff) | |
download | cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.gz cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.bz2 cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.lz cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.xz cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.zst cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.zip |
Diffstat (limited to 'src/Mobs')
-rw-r--r-- | src/Mobs/Monster.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 8a8c4f67a..4c59960f6 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -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; } } |