Fixed exploit with several spells being casted on pet with no de-buff applied. Author: Elron.
--HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user