diff options
author | megamage <none@none> | 2009-02-13 20:12:01 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-13 20:12:01 -0600 |
commit | 1c3f478ecc5745b880ca6610d64aa5522eb24b1b (patch) | |
tree | abbaf56201c8b40f41bf5af20eb76c370ba32182 /src/game/Spell.cpp | |
parent | 59be8223e4f25e28ede94f9694a2b151caffd9ed (diff) | |
parent | 29f3d67fb8d47ea25291fa040f1cfd33b53c9da6 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 0ede1f00e4d..d6d11ba80a7 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1121,7 +1121,7 @@ void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask) 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) || type == DRTYPE_ALL) + if((type == DRTYPE_PLAYER && (unit->GetTypeId() == TYPEID_PLAYER || ((Creature*)unit)->isPet() || ((Creature*)unit)->isPossessedByPlayer())) || type == DRTYPE_ALL) unit->IncrDiminishing(m_diminishGroup); } |