azerothcore-wotlk icon indicating copy to clipboard operation
azerothcore-wotlk copied to clipboard

NPCs don't attack when silenced, they stand still

Open mpfans opened this issue 4 years ago • 11 comments

All NPCs that have mana and can cast spells have this bug...

  1. .go 16222.1 16252.1 12.5872 1 0 0
  2. .gm on
  3. .npc add 16977
  4. Stay away from NPC,then .gm off
  5. Approach or attack NPCs with skills
  6. When NPC casts, try to interrupt NPC casting
  7. It will stand still and wait for the silence to pass

EXPECTED BLIZZLIKE BEHAVIOUR: When NPC casts, try to interrupt NPC casting or out of NPC's view,NPC will run to you and attack you with melee

https://youtu.be/UjwQxJONNGs

mpfans avatar Dec 29 '20 08:12 mpfans

@mpfans please include your AC version (commit hash) when reporting an issue

FrancescoBorzi avatar Dec 29 '20 09:12 FrancescoBorzi

@mpfans please include your AC version (commit hash) when reporting an issue

sry.. AzerothCore revision : 96c7d42+ 2020-12-24 02:48:51 +0000 (master branch) OS:ubuntu 18.04

mpfans avatar Dec 29 '20 09:12 mpfans

I think there are like 5 open issues about this or similar to this.

Kitzunu avatar Dec 29 '20 12:12 Kitzunu

The npc behavior looks similar to this: https://github.com/azerothcore/azerothcore-wotlk/issues/4093

alecsci avatar Jan 05 '21 17:01 alecsci

This issue has not been fixed

mpfans avatar Apr 02 '21 14:04 mpfans

@esanhueza can you please have another look at this?

FrancescoBorzi avatar Apr 03 '21 17:04 FrancescoBorzi

I can confirm the problem persist, but I think it's a problem not related to the PR.

This specific NPC has the following entries in the table smart_scripts:

  1. Arch Mage Xintor - On Reset - Disable Combat Movement (No Repeat)
  2. Arch Mage Xintor - On Aggro - Cast 'Fireball' (No Repeat)
  3. Arch Mage Xintor - On Aggro - Increment Phase By 1 (No Repeat)
  4. Arch Mage Xintor - Within 0-40 Range - Cast 'Fireball' (No Repeat)
  5. Arch Mage Xintor - Between 0-15% Mana - Enable Combat Movement (No Repeat)
  6. Arch Mage Xintor - Between 0-15% Mana - Increment Phase By 1 (No Repeat)
  7. Arch Mage Xintor - Within 35-80 Range - Enable Combat Movement (No Repeat)
  8. Arch Mage Xintor - Within 5-15 Range - Disable Combat Movement (No Repeat)
  9. Arch Mage Xintor - Within 0-5 Range - Enable Combat Movement (No Repeat)
  10. Arch Mage Xintor - Between 30-100% Mana - Set Event Phase 1 (No Repeat)
  11. Arch Mage Xintor - In Combat - Cast 'Arcane Missiles' (No Repeat)
  12. Arch Mage Xintor - Between 0-50% Health - Cast 'Ice Barrier' (No Repeat)
  13. Arch Mage Xintor - Between 0-50% Health - Cast 'Blizzard' (No Repeat)
  14. Arch Mage Xintor - Between 0-15% Health - Flee For Assist (No Repeat)
  15. Arch Mage Xintor - On Evade - Set Event Phase 0 (No Repeat)

Arch Mage Xintor will behave as expected if entries 1 and 8 are removed, but I'm not sure if the problem is due to these entries or the mechanism that handles them.

esanhueza avatar Apr 04 '21 03:04 esanhueza

@mpfans

FrancescoBorzi avatar Apr 04 '21 21:04 FrancescoBorzi

Any tank player knows that,all NPCs that can cast spells will block its perspective to bring all monsters together. https://youtu.be/UjwQxJONNGs Please watch this video from 45 seconds,the monster should run to the player, not to the distance to continue casting

mpfans avatar Apr 05 '21 13:04 mpfans

https://i.imgur.com/eWhmhq9.mp4

Recorded this in a recent test https://github.com/azerothcore/azerothcore-wotlk/pull/9141, this seems like it could be relevant to this bounty.

FlamePrince avatar Nov 12 '21 19:11 FlamePrince

There is no generic fix to this. All scripts using that kind of scripts (https://github.com/azerothcore/azerothcore-wotlk/issues/4091#issuecomment-812963818) must rewritten to use SMART_CAST_COMBAT_MOVE. TC did it long time ago.

UltraNix avatar Mar 13 '22 10:03 UltraNix