diff options
| author | xomachine <xomachiner@gmail.com> | 2012-12-15 19:23:59 +0000 |
|---|---|---|
| committer | xomachine <xomachiner@gmail.com> | 2012-12-15 19:23:59 +0000 |
| commit | e7f0808d467210c2e0ca455cf810e52700518849 (patch) | |
| tree | 56ae9313dda88b86c9908f8731d6f5b411eea8c9 /src | |
| parent | bd135718b6e33da228b052f68544f918d09aff9d (diff) | |
Core/PetAI: Fix pet's self-jumping
Fix issue, when pet autocast leap-like spells on itself
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/AI/CoreAI/PetAI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp index b7fa3940a20..73fdb575e4a 100644 --- a/src/server/game/AI/CoreAI/PetAI.cpp +++ b/src/server/game/AI/CoreAI/PetAI.cpp @@ -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) { |
