mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
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:
@@ -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:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user