[Spells] Anger Management should only work out of combat I can't figure out how to make the decay part work yet
This commit is contained in:
parent
5576da2b9f
commit
41d43be8e8
@ -4770,8 +4770,8 @@ void Aura::PeriodicTick()
|
||||
// Anger Management
|
||||
// amount = 1+ 16 = 17 = 3,4*5 = 10,2*5/3
|
||||
// so 17 is rounded amount for 5 sec tick grow ~ 1 range grow in 3 sec
|
||||
if (powerType == POWER_RAGE)
|
||||
{ target->ModifyPower(powerType, m_modifier.m_amount * 3 / 5); }
|
||||
if (powerType == POWER_RAGE && !target->IsInCombat())
|
||||
{ target->ModifyPower(powerType, m_modifier.m_amount * 1 / 5); }
|
||||
break;
|
||||
}
|
||||
// Here tick dummy auras
|
||||
|
Loading…
x
Reference in New Issue
Block a user