mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
Core/Auras: nopch fixes
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "Define.h"
|
||||
|
||||
class Unit;
|
||||
class WorldObject;
|
||||
|
||||
enum DisableType
|
||||
{
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user