aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeyden <saiifii@live.de>2017-11-23 22:35:42 +0100
committerShauren <shauren.trinity@gmail.com>2017-11-23 22:35:42 +0100
commit95b194f3f8b49d4b34997ee8ccba5f36d001d4af (patch)
treec69440e4998feda750a4a6d27e5a1a087d14e4e8
parentdda7d89445e49b5a4115d41a48819449212073fb (diff)
Core/Auras: Fixed rppm proc chance calculation (#20962)
* LastAttemptTime was reseted before it could have been taken into account for chance calculation
-rw-r--r--src/server/game/Spells/Auras/SpellAuras.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp
index 57c668bb8b6..3f4287becd7 100644
--- a/src/server/game/Spells/Auras/SpellAuras.cpp
+++ b/src/server/game/Spells/Auras/SpellAuras.cpp
@@ -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;