Core/Unit: rename several getters to follow codestyle
uint8 GetLevel()
uint8 GetLevelForTarget(WorldObject const* /*target*/)
void SetLevel(uint8 lvl)
uint8 GetRace()
uint32 GetRaceMask()
uint8 GetClass()
uint32 GetClassMask()
uint8 GetGender()
(cherry picked from commit 5c09ff51f7015b775def8d5cc1f678eaef37200f)
This commit is contained in:
@@ -223,7 +223,7 @@ class spell_monk_stagger : public AuraScript
|
||||
Unit* target = GetTarget();
|
||||
float agility = target->GetStat(STAT_AGILITY);
|
||||
float base = CalculatePct(agility, float(effect->GetAmount()));
|
||||
float K = sDB2Manager.EvaluateExpectedStat(ExpectedStatType::ArmorConstant, target->getLevel(), -2, 0, Classes(target->getClass()));
|
||||
float K = sDB2Manager.EvaluateExpectedStat(ExpectedStatType::ArmorConstant, target->GetLevel(), -2, 0, Classes(target->GetClass()));
|
||||
|
||||
float newAmount = (base / (base + K));
|
||||
newAmount *= multiplier;
|
||||
|
||||
Reference in New Issue
Block a user