azerothcore / azerothcore-wotlk

Complete Open Source and Modular solution for MMO
http://www.azerothcore.org
GNU Affero General Public License v3.0
6.39k stars 2.55k forks source link

Mobs will only stand in a daze at a distance and will not engage in melee attacks #18779

Open fangshun2004 opened 4 months ago

fangshun2004 commented 4 months ago

Current Behaviour

When the player is immobilized during a fight, some spell creatures leave the player at a distance, but their smart script does not have ranged spells, they will just stand in a daze at a distance. When the player is immobilized, they don't attack with melee, they just stand in a daze at a distance. After that, even if the player leaves the fight and fights them again, they will just stand in a daze at a distance if the player is not immobilized

Expected Blizzlike Behaviour

Creatures that don't have ranged spellcasting spells should only attack with melee ...

Source

No response

Steps to reproduce the problem

  1. go c 53276
  2. Fight a creature with an NPC ID of 10400 and a creature with a mob ID of 10413
  3. When mob 10413 uses spell 4962, the player will be immobilized, and mob 10400 will only stay in a daze at a distance, as they have no ranged spells to use
  4. .gm on
  5. .gm off
  6. NPC ID of 10400 mobs will just stay in place

Extra Notes

No response

AC rev. hash/commit

51ec92535190

Operating system

windows 10

Custom changes or Modules

No response

fangshun2004 commented 4 months ago

Probably related to this commit https://github.com/azerothcore/azerothcore-wotlk/pull/18026