fix(Core/Spells): Deep Freeze should damage only permanent stun-immuned targets (#10452)

Fixed #10386

Co-authored-by: temperrr <temperrr@users.noreply.github.com>
This commit is contained in:
UltraNix
2022-02-19 13:47:42 +01:00
committed by GitHub
parent f82c60526b
commit b97869edb8

View File

@@ -8522,6 +8522,12 @@ bool Unit::HandleProcTriggerSpell(Unit* victim, uint32 damage, AuraEffect* trigg
return false;
}
}
else if (auraSpellInfo->Id == 71761) // Deep Freeze Immunity State (only permanent)
{
Creature* creature = victim->ToCreature();
if (!creature || !creature->HasMechanicTemplateImmunity(1 << (MECHANIC_STUN - 1)))
return false;
}
break;
case SPELLFAMILY_WARLOCK:
{