warlock imp bug
When you send the IMP out without the active fireball, it goes around the target
When you send the IMP out without the active fireball, should not take any action
When you send the IMP out without the active fireball, it goes around the target
AzerothCore rev. a35725712e04+ 2019-08-02 09:05:33 +0000
master
51e54da6379f42eef504531a298e654278527311
Windows 10 64bit
anticheat
sorry about my english
Confirm.
too movement is very bad.
Confirm
Pets: DK, WARLOCK
This only affects pets which have no melee attack: The warlock imp and the mage water elemental. Other pets are not affected. The reason for this is the AI logic of those two pets which tries to get a distance to the victim because both pets use ranged spells and must not attack otherwise. This is not easy to fix and to be honest is also not a big problem in my opinion.
If someone wants to fix this, this would be a good point to start:
https://github.com/azerothcore/azerothcore-wotlk/blob/9f593eb64e541eca05a857bec292a53e85cecfa8/src/server/game/AI/CoreAI/PetAI.cpp#L566
This sets a 20 yard distance for pets who have no melee attack.
This only affects pets which have no melee attack: The warlock imp and the mage water elemental. Other pets are not affected. The reason for this is the AI logic of those two pets which tries to get a distance to the victim because both pets use ranged spells and must not attack otherwise. This is not easy to fix and to be honest is also not a big problem in my opinion.
If someone wants to fix this, this would be a good point to start:
https://github.com/azerothcore/azerothcore-wotlk/blob/9f593eb64e541eca05a857bec292a53e85cecfa8/src/server/game/AI/CoreAI/PetAI.cpp#L566This sets a 20 yard distance for pets who have no melee attack.
@Nightprince Fixed this for me. i send diff for you . i can't pull request . test and pull request this.
Ty @Nightprince
I presume this was taken over from TC 3.3.5. Sorry, but this contains too many changes, I don't have the time to sort this out or test this thoroughly to prevent side effects or regression, and I won't take over such changes blindly.
I presume this was taken over from TC 3.3.5. Sorry, but this contains too many changes, I don't have the time to sort this out or test this thoroughly to prevent side effects or regression, and I won't take over such changes blindly.
if you don't want to update PetAI to last version of TC , just change this line:
to :
if(_canMeleeAttack())
me->GetMotionMaster()->MoveChase(target, 20.0f, float(M_PI));
@Nightprince thanks, can you please open a PR with that?
Most helpful comment
if you don't want to update PetAI to last version of TC , just change this line:
https://github.com/azerothcore/azerothcore-wotlk/blob/9f593eb64e541eca05a857bec292a53e85cecfa8/src/server/game/AI/CoreAI/PetAI.cpp#L566
to :