azerothcore / azerothcore-wotlk

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

Mo'grosh Shaman in Loch Modan fails to cast Lightning Bolt due to SmartAI #19325

Closed skslater closed 2 months ago

skslater commented 3 months ago

Current Behaviour

Mo'grosh Shaman (1181) in Loch Modan repeatedly tries and fails to cast Lightning Bolt, remaining at casting range and not engaging until the player moves into melee range.

Possibly related to the interaction between Lightning Bolt (9532) and Quick Bloodlust (3229) in SmartAI as Quick Bloodlust is set to interrupt casting and timers place it the same period as the initial Lightning Bolt cast.

Activating debug logging for scripts.ai shows fast, repeated attempts to cast Quick Bloodlust throughout this time.

Expected Blizzlike Behaviour

Shaman should engage at spell range with Lightning Bolt, potentially casting Quick Bloodlust.

Source

No response

Steps to reproduce the problem

.character level 21 .go xyz -4866 -3849 302 0 3

engage Mo'grosh Shaman outside of melee range, who will begin to cast Lightning Bolt but show repeated "Failed" cast bar.

Extra Notes

Current SmartAI for Mo'grosh Shaman:

Lightning Bolt has initialMin=0 initialMax=40 and a 3 second cast time. Quick Bloodlust has initialMin=1000 initialMax=2000 and interrupt casting flag.

Compare with entry 98 (Riverpaw Taskmaster) where Quick Bloodlust doesn't have the interrupt casting flag in the SmartAI.

AC rev. hash/commit

f85d8433a66e

Operating system

Ubuntu 22.04

Custom changes or Modules

None

Gultask commented 3 months ago

oh yeah, the interrupt flag is a leftover from when if an event was triggered while the creature was casting something, the event would be lost. Nowadays they get delayed until the cast is possible.