Core/Spells: fixed Sentinel passive Rage bonus
This commit is contained in:
1 parent
85c156299b
commit
8fd486471b
1 file changed
+6
@@ -778,6 +778,12 @@ uint32 Unit::DealDamage(Unit* victim, uint32 damage, CleanDamage const* cleanDam
|
||||
if (cleanDamage && damagetype == DIRECT_DAMAGE && this != victim && getPowerType() == POWER_RAGE)
|
||||
{
|
||||
uint32 rage = uint32(GetAttackTime(cleanDamage->attackType) / 1000 * 8.125f);
|
||||
|
||||
// Sentinel
|
||||
if (victim->GetVictim() && victim->GetVictim() != this)
|
||||
if (AuraEffect* aurEff = GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_GENERIC, 1916, EFFECT_1))
|
||||
rage += CalculatePct(rage, aurEff->GetAmount());
|
||||
|
||||
switch (cleanDamage->attackType)
|
||||
{
|
||||
case OFF_ATTACK:
|
||||
|
||||
Reference in new issue
Block a user