Core/Spells: Refactor Player::ApplySpellMod to take SpellInfo argument instead of just spell id
Port From (https://github.com/TrinityCore/TrinityCore/commit/624881bef5c90a91e4c59e5bf404d8775c2ca55d)
This commit is contained in:
@@ -352,7 +352,7 @@ namespace Game.Combat
|
||||
|
||||
Player modOwner = hatedUnit.GetSpellModOwner();
|
||||
if (modOwner != null)
|
||||
modOwner.ApplySpellMod(threatSpell.Id, SpellModOp.Threat, ref threat);
|
||||
modOwner.ApplySpellMod(threatSpell, SpellModOp.Threat, ref threat);
|
||||
}
|
||||
|
||||
return hatedUnit.ApplyTotalThreatModifier(threat, schoolMask);
|
||||
|
||||
Reference in New Issue
Block a user