mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user