NPCs don't attack when silenced, they stand still
All NPCs that have mana and can cast spells have this bug...
- .go 16222.1 16252.1 12.5872 1 0 0
- .gm on
- .npc add 16977
- Stay away from NPC,then .gm off
- Approach or attack NPCs with skills
- When NPC casts, try to interrupt NPC casting
- 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 please include your AC version (commit hash) when reporting an issue
@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
I think there are like 5 open issues about this or similar to this.
The npc behavior looks similar to this: https://github.com/azerothcore/azerothcore-wotlk/issues/4093
This issue has not been fixed
@esanhueza can you please have another look at this?
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:
- Arch Mage Xintor - On Reset - Disable Combat Movement (No Repeat)
- Arch Mage Xintor - On Aggro - Cast 'Fireball' (No Repeat)
- Arch Mage Xintor - On Aggro - Increment Phase By 1 (No Repeat)
- Arch Mage Xintor - Within 0-40 Range - Cast 'Fireball' (No Repeat)
- Arch Mage Xintor - Between 0-15% Mana - Enable Combat Movement (No Repeat)
- Arch Mage Xintor - Between 0-15% Mana - Increment Phase By 1 (No Repeat)
- Arch Mage Xintor - Within 35-80 Range - Enable Combat Movement (No Repeat)
- Arch Mage Xintor - Within 5-15 Range - Disable Combat Movement (No Repeat)
- Arch Mage Xintor - Within 0-5 Range - Enable Combat Movement (No Repeat)
- Arch Mage Xintor - Between 30-100% Mana - Set Event Phase 1 (No Repeat)
- Arch Mage Xintor - In Combat - Cast 'Arcane Missiles' (No Repeat)
- Arch Mage Xintor - Between 0-50% Health - Cast 'Ice Barrier' (No Repeat)
- Arch Mage Xintor - Between 0-50% Health - Cast 'Blizzard' (No Repeat)
- Arch Mage Xintor - Between 0-15% Health - Flee For Assist (No Repeat)
- 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.
@mpfans
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
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.
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.