mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Scripts/ShadowLabyrinth): guard null attacker in Murmur DamageTaken (#26141)
Co-authored-by: Claude Opus 4.8 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
eb168e9f28
commit
4f777aa0b4
@@ -120,7 +120,7 @@ struct boss_murmur : public BossAI
|
||||
{
|
||||
BossAI::DamageTaken(attacker, damage, damagetype, damageSchoolMask);
|
||||
|
||||
if (!me->GetVictim() && attacker->IsControlledByPlayer())
|
||||
if (attacker && !me->GetVictim() && attacker->IsControlledByPlayer())
|
||||
AttackStart(attacker);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user