Core/Auras: Fixed rppm proc chance calculation (#20962)

* LastAttemptTime was reseted before it could have been taken into account for chance calculation
This commit is contained in:
Seyden
2017-11-23 22:35:42 +01:00
committed by Shauren
parent dda7d89445
commit 95b194f3f8

View File

@@ -1799,9 +1799,11 @@ uint32 Aura::IsProcTriggeredOnEvent(AuraApplication* aurApp, ProcEventInfo& even
}
}
bool success = roll_chance_f(CalcProcChance(*procEntry, eventInfo));
const_cast<Aura*>(this)->SetLastProcAttemptTime(now);
if (roll_chance_f(CalcProcChance(*procEntry, eventInfo)))
if (success)
return procEffectMask;
return 0;