diff options
author | ariel- <ariel-@users.noreply.github.com> | 2018-03-12 03:24:25 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2018-03-12 03:24:25 -0300 |
commit | ef4b1492e18c9573c38605b026106ee6d80e4863 (patch) | |
tree | 0aca066aa3c05ab6f032e9fc17c9d9ba1a44b386 /src | |
parent | 214fd579c0b53885d22ab49b90201060a794f039 (diff) |
Core/Auras: fix nopch
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/Auras/SpellAuras.cpp | 5 | ||||
-rw-r--r-- | src/server/game/Spells/Auras/SpellAuras.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp index 7234e7cce06..03bffc4c0bd 100644 --- a/src/server/game/Spells/Auras/SpellAuras.cpp +++ b/src/server/game/Spells/Auras/SpellAuras.cpp @@ -853,6 +853,11 @@ void Aura::Update(uint32 diff, Unit* caster) } } +int32 Aura::CalcMaxDuration(Unit* caster) const +{ + return Aura::CalcMaxDuration(GetSpellInfo(), caster); +} + /*static*/ int32 Aura::CalcMaxDuration(SpellInfo const* spellInfo, WorldObject* caster) { Player* modOwner = nullptr; diff --git a/src/server/game/Spells/Auras/SpellAuras.h b/src/server/game/Spells/Auras/SpellAuras.h index 39eadf52443..dcdc6b55ff1 100644 --- a/src/server/game/Spells/Auras/SpellAuras.h +++ b/src/server/game/Spells/Auras/SpellAuras.h @@ -141,7 +141,7 @@ class TC_GAME_API Aura int32 GetMaxDuration() const { return m_maxDuration; } void SetMaxDuration(int32 duration) { m_maxDuration = duration; } int32 CalcMaxDuration() const { return CalcMaxDuration(GetCaster()); } - int32 CalcMaxDuration(Unit* caster) const { return Aura::CalcMaxDuration(GetSpellInfo(), caster); } + int32 CalcMaxDuration(Unit* caster) const; static int32 CalcMaxDuration(SpellInfo const* spellInfo, WorldObject* caster); int32 GetDuration() const { return m_duration; } void SetDuration(int32 duration, bool withMods = false); |