aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Handlers/CalendarHandler.cpp2
-rw-r--r--src/server/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp58
2 files changed, 1 insertions, 59 deletions
diff --git a/src/server/game/Handlers/CalendarHandler.cpp b/src/server/game/Handlers/CalendarHandler.cpp
index bbf8433ad22..12c0b571b38 100755
--- a/src/server/game/Handlers/CalendarHandler.cpp
+++ b/src/server/game/Handlers/CalendarHandler.cpp
@@ -892,4 +892,4 @@ void WorldSession::SendCalendarRaidLockout(InstanceSave* save, bool add)
data << uint32(save->GetResetTime() - currTime);
data << uint64(save->GetInstanceId());
SendPacket(&data);
-} \ No newline at end of file
+}
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp
index a544f2f4710..01879240e3a 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp
@@ -1198,63 +1198,6 @@ class spell_sindragosa_ice_tomb : public SpellScriptLoader
}
};
-class FrostBombTargetSelector
-{
- public:
- FrostBombTargetSelector(Unit* caster, std::list<Creature*> const& collisionList) : _caster(caster), _collisionList(collisionList) { }
-
- bool operator()(Unit* unit)
- {
- if (unit->HasAura(SPELL_ICE_TOMB_DAMAGE))
- return true;
-
- for (std::list<Creature*>::const_iterator itr = _collisionList.begin(); itr != _collisionList.end(); ++itr)
- if ((*itr)->IsInBetween(_caster, unit))
- return true;
-
- return false;
- }
-
- private:
- Unit* _caster;
- std::list<Creature*> const& _collisionList;
-};
-
-class spell_sindragosa_collision_filter : public SpellScriptLoader
-{
- public:
- spell_sindragosa_collision_filter() : SpellScriptLoader("spell_sindragosa_collision_filter") { }
-
- class spell_sindragosa_collision_filter_SpellScript : public SpellScript
- {
- PrepareSpellScript(spell_sindragosa_collision_filter_SpellScript);
-
- bool Validate(SpellInfo const* /*spell*/)
- {
- if (!sSpellMgr->GetSpellInfo(SPELL_ICE_TOMB_DAMAGE))
- return false;
- return true;
- }
-
- void FilterTargets(std::list<Unit*>& unitList)
- {
- std::list<Creature*> tombs;
- GetCreatureListWithEntryInGrid(tombs, GetCaster(), NPC_ICE_TOMB, 200.0f);
- unitList.remove_if (FrostBombTargetSelector(GetCaster(), tombs));
- }
-
- void Register()
- {
- OnUnitTargetSelect += SpellUnitTargetFn(spell_sindragosa_collision_filter_SpellScript::FilterTargets, EFFECT_0, TARGET_UNIT_SRC_AREA_ENEMY);
- }
- };
-
- SpellScript* GetSpellScript() const
- {
- return new spell_sindragosa_collision_filter_SpellScript();
- }
-};
-
class spell_sindragosa_icy_grip : public SpellScriptLoader
{
public:
@@ -1513,7 +1456,6 @@ void AddSC_boss_sindragosa()
new spell_sindragosa_instability();
new spell_sindragosa_frost_beacon();
new spell_sindragosa_ice_tomb();
- new spell_sindragosa_collision_filter();
new spell_sindragosa_icy_grip();
new spell_rimefang_icy_blast();
new spell_frostwarden_handler_order_whelp();