diff options
Diffstat (limited to 'src/server/scripts')
| -rw-r--r-- | src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp | 23 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_warlock.cpp | 2 | 
2 files changed, 3 insertions, 22 deletions
| diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp index 2f3f1eb1810..129836b4b69 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp @@ -393,25 +393,6 @@ class NecroticPlagueTargetCheck          uint32 _notAura2;  }; -class HeightDifferenceCheck -{ -    public: -        HeightDifferenceCheck(GameObject* go, float diff, bool reverse) -            : _baseObject(go), _difference(diff), _reverse(reverse) -        { -        } - -        bool operator()(WorldObject* unit) const -        { -            return (unit->GetPositionZ() - _baseObject->GetPositionZ() > _difference) != _reverse; -        } - -    private: -        GameObject* _baseObject; -        float _difference; -        bool _reverse; -}; -  class FrozenThroneResetWorker  {      public: @@ -1510,7 +1491,7 @@ struct npc_valkyr_shadowguard : public ScriptedAI                      {                          std::list<Creature*> triggers;                          GetCreatureListWithEntryInGrid(triggers, me, NPC_WORLD_TRIGGER, 150.0f); -                        triggers.remove_if(HeightDifferenceCheck(platform, 5.0f, true)); +                        triggers.remove_if(Trinity::HeightDifferenceCheck(platform, 5.0f, true));                          if (triggers.empty())                              return; @@ -2196,7 +2177,7 @@ class spell_the_lich_king_quake : public SpellScript      void FilterTargets(std::list<WorldObject*>& targets)      {          if (GameObject* platform = ObjectAccessor::GetGameObject(*GetCaster(), GetCaster()->GetInstanceScript()->GetGuidData(DATA_ARTHAS_PLATFORM))) -            targets.remove_if(HeightDifferenceCheck(platform, 5.0f, false)); +            targets.remove_if(Trinity::HeightDifferenceCheck(platform, 5.0f, false));      }      void HandleSendEvent(SpellEffIndex /*effIndex*/) diff --git a/src/server/scripts/Spells/spell_warlock.cpp b/src/server/scripts/Spells/spell_warlock.cpp index bac0337f9c0..487f2da2c3a 100644 --- a/src/server/scripts/Spells/spell_warlock.cpp +++ b/src/server/scripts/Spells/spell_warlock.cpp @@ -712,7 +712,7 @@ class spell_warl_life_tap : public SpellScript          return GetCaster()->GetTypeId() == TYPEID_PLAYER;      } -    bool Validate(SpellInfo const* /*spell*/) override +    bool Validate(SpellInfo const* /*spellInfo*/) override      {          return ValidateSpellInfo({ SPELL_WARLOCK_LIFE_TAP_ENERGIZE, SPELL_WARLOCK_LIFE_TAP_ENERGIZE_2 });      } | 
