mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 14:16:31 +00:00
fix(Core/AI): prevent PetAI autocast leap to self and allies (#22472)
Co-authored-by: xomachine <xomachiner@gmail.com> Co-authored-by: jackpoz <giacomopoz@gmail.com>
This commit is contained in:
@@ -282,6 +282,14 @@ void PetAI::UpdateAI(uint32 diff)
|
||||
}
|
||||
}
|
||||
|
||||
if (spellInfo->HasEffect(SPELL_EFFECT_JUMP_DEST))
|
||||
{
|
||||
if (!spellUsed)
|
||||
delete spell;
|
||||
|
||||
continue; // Pets must only jump to target
|
||||
}
|
||||
|
||||
// No enemy, check friendly
|
||||
if (!spellUsed)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user