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:
parent
f82c60526b
commit
b97869edb8
1 changed files with 6 additions and 0 deletions
|
|
@ -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:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue