Core/Auras: Implemented new proc ppm modifier - SPELL_PPM_MOD_AURA
Port From (https://github.com/TrinityCore/TrinityCore/commit/234dd5f26b045518f2f67cc434acc8b978607cd6)
This commit is contained in:
@@ -2199,7 +2199,8 @@ namespace Framework.Constants
|
|||||||
Spec = 4,
|
Spec = 4,
|
||||||
Race = 5,
|
Race = 5,
|
||||||
ItemLevel = 6,
|
ItemLevel = 6,
|
||||||
Battleground = 7
|
Battleground = 7,
|
||||||
|
Aura = 8
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum SpellShapeshiftFormFlags
|
public enum SpellShapeshiftFormFlags
|
||||||
|
|||||||
@@ -3089,6 +3089,12 @@ namespace Game.Spells
|
|||||||
ppm *= 1.0f + mod.Coeff;
|
ppm *= 1.0f + mod.Coeff;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case SpellProcsPerMinuteModType.Battleground:
|
||||||
|
{
|
||||||
|
if (caster.HasAura(mod.Param))
|
||||||
|
ppm *= 1.0f + mod.Coeff;
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user