diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Northrend/northrend_script_loader.cpp | 1 | ||||
-rw-r--r-- | src/server/scripts/Northrend/zone_crystalsong_forest.cpp | 107 |
2 files changed, 0 insertions, 108 deletions
diff --git a/src/server/scripts/Northrend/northrend_script_loader.cpp b/src/server/scripts/Northrend/northrend_script_loader.cpp index 9b7f93fb455..45998deae8d 100644 --- a/src/server/scripts/Northrend/northrend_script_loader.cpp +++ b/src/server/scripts/Northrend/northrend_script_loader.cpp @@ -396,5 +396,4 @@ void AddNorthrendScripts() AddSC_storm_peaks(); AddSC_wintergrasp(); AddSC_zuldrak(); - AddSC_crystalsong_forest(); } diff --git a/src/server/scripts/Northrend/zone_crystalsong_forest.cpp b/src/server/scripts/Northrend/zone_crystalsong_forest.cpp deleted file mode 100644 index 34f7f1de776..00000000000 --- a/src/server/scripts/Northrend/zone_crystalsong_forest.cpp +++ /dev/null @@ -1,107 +0,0 @@ -/* - * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -/* Script Data Start -SDName: CrystalSongForest -SDAuthor: Malcrom -SD%Complete: 99% -SDComment: -SDCategory: CrystalsongForest -Script Data End */ - -#include "ScriptMgr.h" -#include "ObjectAccessor.h" -#include "ScriptedCreature.h" - -/******************************************************* - * npc_warmage_violetstand - *******************************************************/ - -enum Spells -{ - SPELL_TRANSITUS_SHIELD_BEAM = 48310 -}; - -enum NPCs -{ - NPC_TRANSITUS_SHIELD_DUMMY = 27306, - NPC_WARMAGE_SARINA = 32369, - NPC_WARMAGE_HALISTER = 32371, - NPC_WARMAGE_ILSUDRIA = 32372 -}; - -class npc_warmage_violetstand : public CreatureScript -{ -public: - npc_warmage_violetstand() : CreatureScript("npc_warmage_violetstand") { } - - struct npc_warmage_violetstandAI : public ScriptedAI - { - npc_warmage_violetstandAI(Creature* creature) : ScriptedAI(creature) - { - SetCombatMovement(false); - } - - ObjectGuid targetGUID; - - void Reset() override - { - targetGUID.Clear(); - } - - void UpdateAI(uint32 /*diff*/) override - { - if (me->IsNonMeleeSpellCast(false)) - return; - - if (!targetGUID) - { - if (me->GetEntry() == NPC_WARMAGE_SARINA) - { - std::list<Creature*> orbList; - GetCreatureListWithEntryInGrid(orbList, me, NPC_TRANSITUS_SHIELD_DUMMY, 32.0f); - if (!orbList.empty()) - { - for (Creature* orb : orbList) - { - if (orb->GetPositionY() < 1000) - { - targetGUID = orb->GetGUID(); - break; - } - } - } - } - else if (Creature* pOrb = GetClosestCreatureWithEntry(me, NPC_TRANSITUS_SHIELD_DUMMY, 32.0f)) - targetGUID = pOrb->GetGUID(); - } - - if (Creature* pOrb = ObjectAccessor::GetCreature(*me, targetGUID)) - DoCast(pOrb, SPELL_TRANSITUS_SHIELD_BEAM); - } - }; - - CreatureAI* GetAI(Creature* creature) const override - { - return new npc_warmage_violetstandAI(creature); - } -}; - -void AddSC_crystalsong_forest() -{ - new npc_warmage_violetstand(); -} |