aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSorikoff <46191832+Sorikoff@users.noreply.github.com>2020-01-19 17:35:28 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-20 23:04:44 +0100
commit97c28f4a429757edbf135326288400dd5aff79dc (patch)
treee07b7f3ca8450cfed8014af8d269249f7442f0a7 /src
parentc99d7265910ae67561059ddca6b5616c105fc7d5 (diff)
Scripts/Transitus Shield: Warmages (#24082)
* Scripts/Transitus Shield: Warmage * Scripts/Transitus Shield: SQL fix * Scripts/Transitus Shield: improve SQL * Rename 9999_99_99_99_world.sql to 2020_01_19_01_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit f20b147c71c69f196644ab250e5083e9e20eb6de)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Northrend/zone_borean_tundra.cpp114
1 files changed, 0 insertions, 114 deletions
diff --git a/src/server/scripts/Northrend/zone_borean_tundra.cpp b/src/server/scripts/Northrend/zone_borean_tundra.cpp
index 4a3418f6146..12963a4e563 100644
--- a/src/server/scripts/Northrend/zone_borean_tundra.cpp
+++ b/src/server/scripts/Northrend/zone_borean_tundra.cpp
@@ -2042,119 +2042,6 @@ public:
}
};
-/*******************************************************
- * npc_warmage_coldarra
- *******************************************************/
-
-enum Spells
-{
- SPELL_TRANSITUS_SHIELD_BEAM = 48310
-};
-
-enum NPCs
-{
- NPC_TRANSITUS_SHIELD_DUMMY = 27306,
- NPC_WARMAGE_HOLLISTER = 27906,
- NPC_WARMAGE_CALANDRA = 27173,
- NPC_WARMAGE_WATKINS = 27904
-};
-
-class npc_warmage_coldarra : public CreatureScript
-{
-public:
- npc_warmage_coldarra() : CreatureScript("npc_warmage_coldarra") { }
-
- struct npc_warmage_coldarraAI : public ScriptedAI
- {
- npc_warmage_coldarraAI(Creature* creature) : ScriptedAI(creature)
- {
- Initialize();
- }
-
- void Initialize()
- {
- m_uiTimer = 0;
- }
-
- uint32 m_uiTimer; //Timer until recast
-
- void Reset() override
- {
- Initialize();
- }
-
- void JustEngagedWith(Unit* /*who*/) override { }
-
- void AttackStart(Unit* /*who*/) override { }
-
- void UpdateAI(uint32 uiDiff) override
- {
- if (m_uiTimer <= uiDiff)
- {
- std::list<Creature*> orbList;
- GetCreatureListWithEntryInGrid(orbList, me, NPC_TRANSITUS_SHIELD_DUMMY, 32.0f);
-
- switch (me->GetEntry())
- {
- case NPC_WARMAGE_HOLLISTER:
- {
- if (!orbList.empty())
- {
- for (std::list<Creature*>::const_iterator itr = orbList.begin(); itr != orbList.end(); ++itr)
- {
- if (Creature* pOrb = *itr)
- if (pOrb->GetPositionY() > 6680)
- DoCast(pOrb, SPELL_TRANSITUS_SHIELD_BEAM);
- }
- }
- m_uiTimer = urand(90000, 120000);
- }
- break;
- case NPC_WARMAGE_CALANDRA:
- {
- if (!orbList.empty())
- {
- for (std::list<Creature*>::const_iterator itr = orbList.begin(); itr != orbList.end(); ++itr)
- {
- if (Creature* pOrb = *itr)
- if ((pOrb->GetPositionY() < 6680) && (pOrb->GetPositionY() > 6630))
- DoCast(pOrb, SPELL_TRANSITUS_SHIELD_BEAM);
- }
- }
- m_uiTimer = urand(90000, 120000);
- }
- break;
- case NPC_WARMAGE_WATKINS:
- {
- if (!orbList.empty())
- {
- for (std::list<Creature*>::const_iterator itr = orbList.begin(); itr != orbList.end(); ++itr)
- {
- if (Creature* pOrb = *itr)
- if (pOrb->GetPositionY() < 6630)
- DoCast(pOrb, SPELL_TRANSITUS_SHIELD_BEAM);
- }
- }
- m_uiTimer = urand(90000, 120000);
- }
- break;
- }
- }
- else m_uiTimer -= uiDiff;
-
- ScriptedAI::UpdateAI(uiDiff);
-
- if (!UpdateVictim())
- return;
- }
- };
-
- CreatureAI* GetAI(Creature* creature) const override
- {
- return new npc_warmage_coldarraAI(creature);
- }
-};
-
/*######
## npc_hidden_cultist
######*/
@@ -2603,7 +2490,6 @@ void AddSC_borean_tundra()
new npc_bonker_togglevolt();
new npc_trapped_mammoth_calf();
new npc_valiance_keep_cannoneer();
- new npc_warmage_coldarra();
new npc_hidden_cultist();
new spell_windsoul_totem_aura();
new spell_q11719_bloodspore_ruination_45997();