aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraczman <none@none>2009-04-12 13:11:07 +0200
committerraczman <none@none>2009-04-12 13:11:07 +0200
commit250bae10d8afe23fd6d932f84edaec5563e58b1f (patch)
treee95cd595fa7eff7450776918852a55b70ba5c370 /src
parentd0f964ea9fe92c1174cdf4be72f357fe62423728 (diff)
Fixed exploit with several spells being casted on pet with no de-buff applied. Author: Elron.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 7b2204ca16e..af7d2ee8a98 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -2176,7 +2176,7 @@ void Spell::EffectApplyAura(uint32 i)
return;
// TODO Make a way so it works for every related spell!
- if(unitTarget->GetTypeId()==TYPEID_PLAYER) // Negative buff should only be applied on players
+ if(unitTarget->GetTypeId()==TYPEID_PLAYER ||( unitTarget->GetTypeId()==TYPEID_UNIT && ((Creature*)unitTarget)->isPet() ) ) // Negative buff should only be applied on players
{
uint32 spellId = 0;
if(m_spellInfo->CasterAuraStateNot==AURA_STATE_WEAKENED_SOUL || m_spellInfo->TargetAuraStateNot==AURA_STATE_WEAKENED_SOUL)