Core/PetAI: Fix pet's self-jumping

Fix issue, when pet autocast leap-like spells on itself
This commit is contained in:
xomachine
2012-12-15 19:23:59 +00:00
parent bd135718b6
commit e7f0808d46

View File

@@ -182,7 +182,8 @@ void PetAI::UpdateAI(const uint32 diff)
spellUsed = true;
}
}
if (spellInfo->HasEffect(SPELL_EFFECT_JUMP_DEST))
continue; //pets must jump only to target
// No enemy, check friendly
if (!spellUsed)
{