mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Core/Auras: Fixed SPELL_AURA_MOD_POWER_COST_SCHOOL_PCT and SPELL_AURA_MOD_POWER_COST_SCHOOL auras not taking charges at proc
This commit is contained in:
committed by
Shauren
parent
1c3082446e
commit
4f48b7ae8d
@@ -14113,7 +14113,7 @@ void Unit::ProcDamageAndSpellFor(bool isVictim, Unit * pTarget, uint32 procFlag,
|
||||
// Skip melee hits and spells ws wrong school or zero cost
|
||||
if (procSpell &&
|
||||
(procSpell->manaCost != 0 || procSpell->ManaCostPercentage != 0) && // Cost check
|
||||
(triggeredByAura->GetMiscValue() & procSpell->SchoolMask) == 0) // School check
|
||||
(triggeredByAura->GetMiscValue() & procSpell->SchoolMask)) // School check
|
||||
takeCharges = true;
|
||||
break;
|
||||
case SPELL_AURA_MECHANIC_IMMUNITY:
|
||||
|
||||
Reference in New Issue
Block a user