diff options
author | Shocker <shocker@freakz.ro> | 2011-04-20 15:33:40 +0300 |
---|---|---|
committer | Shocker <shocker@freakz.ro> | 2011-04-20 15:33:40 +0300 |
commit | 2b1f6e29a21b4c32dd666ab6561f67215f5a25c4 (patch) | |
tree | 2f717dcff4549504499470a99f2d0f43be26623c | |
parent | 4c23c590daafa45f18d9d43e44e76c06463f9ab5 (diff) |
Core/Spells: Fix Diminishing Returns for temporary pets (Water Elemental, Feral Spirit, etc)
-rwxr-xr-x | src/server/game/Spells/Spell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 4f2c69f6353..5356b4f98b3 100755 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -1447,7 +1447,7 @@ SpellMissInfo Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask, bool m_diminishLevel = unit->GetDiminishing(m_diminishGroup); DiminishingReturnsType type = GetDiminishingReturnsGroupType(m_diminishGroup); // Increase Diminishing on unit, current informations for actually casts will use values above - if ((type == DRTYPE_PLAYER && (unit->GetTypeId() == TYPEID_PLAYER || unit->ToCreature()->isPet() || unit->ToCreature()->isPossessedByPlayer())) || type == DRTYPE_ALL) + if ((type == DRTYPE_PLAYER && unit->GetCharmerOrOwnerPlayerOrPlayerItself()) || type == DRTYPE_ALL) unit->IncrDiminishing(m_diminishGroup); } |