diff options
| author | QAston <none@none> | 2009-02-13 18:43:17 +0100 |
|---|---|---|
| committer | QAston <none@none> | 2009-02-13 18:43:17 +0100 |
| commit | edcb8840c39291d0a9a7423a204fabe5dfda4107 (patch) | |
| tree | ff3bc014a2c87cdb4360ddb404bfd7eaff2b518a /src/game/Spell.cpp | |
| parent | 0421212873d610969cbf24e22dc38ba3722b56d3 (diff) | |
*Fix diminishing returns for spells casted on a pet.
--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 19b7eaab9e5..36d0da7cae0 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1186,7 +1186,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); } |
