Inline a few functions that should be

This commit is contained in:
Michael Cook (mackal) 2014-07-08 21:21:44 -04:00
parent fc721b8ec8
commit 4707e0f858
2 changed files with 2 additions and 18 deletions

View File

@ -2753,22 +2753,6 @@ void Mob::Warp( float x, float y, float z )
SendPosition(); SendPosition();
} }
bool Mob::DivineAura() const
{
if (spellbonuses.DivineAura)
return true;
return false;
}
bool Mob::Sanctuary() const
{
if (spellbonuses.Sanctuary)
return true;
return false;
}
int16 Mob::GetResist(uint8 type) const int16 Mob::GetResist(uint8 type) const
{ {
if (IsNPC()) if (IsNPC())

View File

@ -818,8 +818,8 @@ public:
inline int& GetNextIncHPEvent() { return nextinchpevent; } inline int& GetNextIncHPEvent() { return nextinchpevent; }
void SetNextIncHPEvent( int inchpevent ); void SetNextIncHPEvent( int inchpevent );
bool DivineAura() const; inline bool DivineAura() const { return spellbonuses.DivineAura; }
bool Sanctuary() const; inline bool Sanctuary() const { return spellbonuses.Sanctuary; }
bool HasNPCSpecialAtk(const char* parse); bool HasNPCSpecialAtk(const char* parse);
int GetSpecialAbility(int ability); int GetSpecialAbility(int ability);