fix(Core/AI): prevent PetAI autocast leap to self and allies (#22472)

Co-authored-by: xomachine <[email protected]>
Co-authored-by: jackpoz <[email protected]>
This commit is contained in:
Jelle Meeus
2025-07-14 10:23:55 +02:00
committed by GitHub
co-authored by xomachine jackpoz
parent 5e30c5abaa
commit a88c058ef0
+8
View File
@@ -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)
{