Core/Auras: nopch fixes

This commit is contained in:
ariel-
2018-03-09 14:49:44 -03:00
parent cb21bded88
commit ecea2d6265
3 changed files with 10 additions and 8 deletions

View File

@@ -21,7 +21,7 @@
#include "Define.h"
class Unit;
class WorldObject;
enum DisableType
{

View File

@@ -1078,6 +1078,14 @@ bool Aura::IsDeathPersistent() const
return GetSpellInfo()->IsDeathPersistent();
}
bool Aura::IsRemovedOnShapeLost(Unit* target) const
{
return GetCasterGUID() == target->GetGUID()
&& m_spellInfo->Stances
&& !m_spellInfo->HasAttribute(SPELL_ATTR2_NOT_NEED_SHAPESHIFT)
&& !m_spellInfo->HasAttribute(SPELL_ATTR0_NOT_SHAPESHIFT);
}
bool Aura::CanBeSaved() const
{
if (IsPassive())

View File

@@ -173,13 +173,7 @@ class TC_GAME_API Aura
bool IsPassive() const;
bool IsDeathPersistent() const;
bool IsRemovedOnShapeLost(Unit* target) const
{
return GetCasterGUID() == target->GetGUID()
&& m_spellInfo->Stances
&& !m_spellInfo->HasAttribute(SPELL_ATTR2_NOT_NEED_SHAPESHIFT)
&& !m_spellInfo->HasAttribute(SPELL_ATTR0_NOT_SHAPESHIFT);
}
bool IsRemovedOnShapeLost(Unit* target) const;
bool CanBeSaved() const;
bool IsRemoved() const { return m_isRemoved; }