mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10223] Implement spell 44572 affect to permament stun immuned targets.
This also fix unexpected triggering effect any unrelated spell casts.
This commit is contained in:
parent
0e2a80477a
commit
093db9c033
6 changed files with 23 additions and 9 deletions
|
|
@ -2756,7 +2756,7 @@ SpellAuraProcResult Unit::HandleProcTriggerSpellAuraProc(Unit *pVictim, uint32 d
|
|||
}
|
||||
break;
|
||||
case SPELLFAMILY_MAGE:
|
||||
if (auraSpellInfo->SpellIconID == 2127) // Blazing Speed
|
||||
if (auraSpellInfo->SpellIconID == 2127) // Blazing Speed
|
||||
{
|
||||
switch (auraSpellInfo->Id)
|
||||
{
|
||||
|
|
@ -2765,18 +2765,24 @@ SpellAuraProcResult Unit::HandleProcTriggerSpellAuraProc(Unit *pVictim, uint32 d
|
|||
trigger_spell_id = 31643;
|
||||
break;
|
||||
default:
|
||||
sLog.outError("Unit::HandleProcTriggerSpellAuraProc: Spell %u miss posibly Blazing Speed",auraSpellInfo->Id);
|
||||
sLog.outError("Unit::HandleProcTriggerSpellAuraProc: Spell %u miss possibly Blazing Speed",auraSpellInfo->Id);
|
||||
return SPELL_AURA_PROC_FAILED;
|
||||
}
|
||||
}
|
||||
// Persistent Shield (Scarab Brooch trinket)
|
||||
else if(auraSpellInfo->Id == 26467)
|
||||
else if(auraSpellInfo->Id == 26467) // Persistent Shield (Scarab Brooch trinket)
|
||||
{
|
||||
// This spell originally trigger 13567 - Dummy Trigger (vs dummy efect)
|
||||
// This spell originally trigger 13567 - Dummy Trigger (vs dummy effect)
|
||||
basepoints[0] = damage * 15 / 100;
|
||||
target = pVictim;
|
||||
trigger_spell_id = 26470;
|
||||
}
|
||||
else if(auraSpellInfo->Id == 71761) // Deep Freeze Immunity State
|
||||
{
|
||||
// spell applied only to permanent immunes to stun targets (bosses)
|
||||
if (pVictim->GetTypeId() != TYPEID_UNIT ||
|
||||
(((Creature*)pVictim)->GetCreatureInfo()->MechanicImmuneMask & (1 << (MECHANIC_STUN - 1))) == 0)
|
||||
return SPELL_AURA_PROC_FAILED;
|
||||
}
|
||||
break;
|
||||
case SPELLFAMILY_WARRIOR:
|
||||
// Deep Wounds (replace triggered spells to directly apply DoT), dot spell have finilyflags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue