Fixed exploit with several spells being casted on pet with no de-buff applied. Author: Elron.

--HG--
branch : trunk
This commit is contained in:
raczman
2009-04-12 13:11:07 +02:00
parent d0f964ea9f
commit 250bae10d8
+1 -1
View File
@@ -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)