refactor(Scripts/Kalimdor): code cleanup (part 10) (#7065)

* refactor(Scripts/Kalimdor): code cleanup (part 10)

* chore(Core/zone_mulgore): delete file

* chore(Core/zone_teldrassil): remove file

* chore(Core/kalimdor_script_loader): remove mulgore and teldrassil zone

Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
Francesco Borzì
2021-08-06 15:45:17 +02:00
committed by GitHub
parent cc02724200
commit 7bddd69c95
26 changed files with 55 additions and 103 deletions

View File

@@ -121,12 +121,16 @@ public:
//Return since we have no target //Return since we have no target
if (!UpdateVictim()) if (!UpdateVictim())
{
return; return;
}
if (SwarmTimer <= diff) if (SwarmTimer <= diff)
{ {
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true)) if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true))
{
DoCast(target, SPELL_CARRION_SWARM); DoCast(target, SPELL_CARRION_SWARM);
}
SwarmTimer = urand(45000, 60000); SwarmTimer = urand(45000, 60000);
Talk(SAY_SWARM); Talk(SAY_SWARM);
@@ -209,7 +213,9 @@ public:
{ {
if (me->IsWithinDist(who, 50) && !me->IsInCombat() && me->IsValidAttackTarget(who)) if (me->IsWithinDist(who, 50) && !me->IsInCombat() && me->IsValidAttackTarget(who))
{
AttackStart(who); AttackStart(who);
}
} }
void UpdateAI(uint32 diff) override void UpdateAI(uint32 diff) override
@@ -219,7 +225,7 @@ public:
if (AnetheronGUID) if (AnetheronGUID)
{ {
Creature* boss = ObjectAccessor::GetCreature(*me, AnetheronGUID); Creature* boss = ObjectAccessor::GetCreature(*me, AnetheronGUID);
if (!boss || (boss && boss->isDead())) if (!boss || boss->isDead())
{ {
me->setDeathState(JUST_DIED); me->setDeathState(JUST_DIED);
me->RemoveCorpse(); me->RemoveCorpse();
@@ -232,7 +238,9 @@ public:
//Return since we have no target //Return since we have no target
if (!UpdateVictim()) if (!UpdateVictim())
{
return; return;
}
if (ImmolationTimer <= diff) if (ImmolationTimer <= diff)
{ {

View File

@@ -11,7 +11,6 @@ SDComment: Doomfires not completely offlike due to core limitations for random m
SDCategory: Caverns of Time, Mount Hyjal SDCategory: Caverns of Time, Mount Hyjal
EndScriptData */ EndScriptData */
#include "hyjal_trash.h"
#include "hyjal.h" #include "hyjal.h"
#include "Player.h" #include "Player.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"

View File

@@ -232,7 +232,7 @@ public:
if (AzgalorGUID) if (AzgalorGUID)
{ {
Creature* boss = ObjectAccessor::GetCreature(*me, AzgalorGUID); Creature* boss = ObjectAccessor::GetCreature(*me, AzgalorGUID);
if (!boss || (boss && boss->isDead())) if (!boss || boss->isDead())
{ {
me->setDeathState(JUST_DIED); me->setDeathState(JUST_DIED);
me->RemoveCorpse(); me->RemoveCorpse();
@@ -245,7 +245,9 @@ public:
//Return since we have no target //Return since we have no target
if (!UpdateVictim()) if (!UpdateVictim())
{
return; return;
}
if (WarstompTimer <= diff) if (WarstompTimer <= diff)
{ {

View File

@@ -11,7 +11,6 @@
#include "CreatureAIImpl.h" #include "CreatureAIImpl.h"
#define HyjalScriptName "instance_hyjal" #define HyjalScriptName "instance_hyjal"
#define ERROR_INST_DATA "TSCR: Instance data not set properly for Mount Hyjal. Encounters will be buggy."
uint32 const EncounterCount = 5; uint32 const EncounterCount = 5;

View File

@@ -19,7 +19,6 @@ EndScriptData */
#include "hyjalAI.h" #include "hyjalAI.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptedEscortAI.h" #include "ScriptedEscortAI.h"
#include "ScriptMgr.h"
enum Spawns enum Spawns
{ {

View File

@@ -6,7 +6,6 @@
#include "hyjal_trash.h" #include "hyjal_trash.h"
#include "hyjal.h" #include "hyjal.h"
#include "hyjalAI.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
@@ -20,9 +19,9 @@ enum Spells
SPELL_DISEASE_CLOUD = 31607, SPELL_DISEASE_CLOUD = 31607,
SPELL_KNOCKDOWN = 31610, SPELL_KNOCKDOWN = 31610,
SPELL_FRENZY = 31540, SPELL_FRENZY = 31540,
SPELL_RAISE_DEAD_1 = 31617, // SPELL_RAISE_DEAD_1 = 31617,
SPELL_RAISE_DEAD_2 = 31624, // SPELL_RAISE_DEAD_2 = 31624,
SPELL_RAISE_DEAD_3 = 31625, // SPELL_RAISE_DEAD_3 = 31625,
SPELL_SHADOW_BOLT = 31627, SPELL_SHADOW_BOLT = 31627,
SPELL_BANSHEE_CURSE = 31651, SPELL_BANSHEE_CURSE = 31651,
SPELL_BANSHEE_WAIL = 38183, SPELL_BANSHEE_WAIL = 38183,

View File

@@ -15,8 +15,6 @@ EndScriptData */
#include "hyjal_trash.h" #include "hyjal_trash.h"
#include "InstanceScript.h" #include "InstanceScript.h"
#include "Opcodes.h" #include "Opcodes.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "WorldPacket.h" #include "WorldPacket.h"
@@ -29,7 +27,6 @@ EndScriptData */
*/ */
#define YELL_EFFORTS "All of your efforts have been in vain, for the draining of the World Tree has already begun. Soon the heart of your world will beat no more." #define YELL_EFFORTS "All of your efforts have been in vain, for the draining of the World Tree has already begun. Soon the heart of your world will beat no more."
#define YELL_EFFORTS_NAME "Archimonde"
class instance_hyjal : public InstanceMapScript class instance_hyjal : public InstanceMapScript
{ {

View File

@@ -434,13 +434,18 @@ public:
SetEscortPaused(false); SetEscortPaused(false);
SetRun(false); SetRun(false);
Creature* cr = nullptr; if (Creature* cr = me->SummonCreature(NPC_CITY_MAN3, EventPos[EVENT_SRC_HALL_CITYMAN1]))
if ((cr = me->SummonCreature(NPC_CITY_MAN3, EventPos[EVENT_SRC_HALL_CITYMAN1]))) {
cr->AI()->DoAction(ACTION_FORCE_CHANGE_LOCK); cr->AI()->DoAction(ACTION_FORCE_CHANGE_LOCK);
if ((cr = me->SummonCreature(NPC_CITY_MAN4, EventPos[EVENT_SRC_HALL_CITYMAN2]))) }
if (Creature* cr = me->SummonCreature(NPC_CITY_MAN4, EventPos[EVENT_SRC_HALL_CITYMAN2]))
{
cr->AI()->DoAction(ACTION_FORCE_CHANGE_LOCK); cr->AI()->DoAction(ACTION_FORCE_CHANGE_LOCK);
if ((cr = me->SummonCreature(NPC_CITY_MAN, EventPos[EVENT_SRC_HALL_CITYMAN3]))) }
if (Creature* cr = me->SummonCreature(NPC_CITY_MAN, EventPos[EVENT_SRC_HALL_CITYMAN3]))
{
cr->AI()->DoAction(ACTION_FORCE_CHANGE_LOCK); cr->AI()->DoAction(ACTION_FORCE_CHANGE_LOCK);
}
} }
else if (param == ACTION_START_SECRET_PASSAGE) else if (param == ACTION_START_SECRET_PASSAGE)
{ {
@@ -1251,7 +1256,7 @@ void npc_arthas::npc_arthasAI::ReorderInstance(uint32 data)
waveGroupId = 4; waveGroupId = 4;
SendNextWave(NPC_MEATHOOK); SendNextWave(NPC_MEATHOOK);
} }
else if (data == COS_PROGRESS_KILLED_SALRAMM) else // if (data == COS_PROGRESS_KILLED_SALRAMM)
{ {
if (pInstance) if (pInstance)
pInstance->DoUpdateWorldState(WORLDSTATE_WAVE_COUNT, 10); pInstance->DoUpdateWorldState(WORLDSTATE_WAVE_COUNT, 10);

View File

@@ -40,9 +40,6 @@ enum NpcIds
NPC_CAPTAIN_SKARLOC = 17862, NPC_CAPTAIN_SKARLOC = 17862,
NPC_SKARLOC_MOUNT = 18798, NPC_SKARLOC_MOUNT = 18798,
NPC_LORDAERON_SENTRY = 17815,
NPC_LORDAERON_WATCHMAN = 17814,
}; };
enum GobjectIds enum GobjectIds
@@ -54,7 +51,6 @@ enum GobjectIds
enum MiscIds enum MiscIds
{ {
QUEST_DIVERSION = 10283,
WORLD_STATE_BARRELS_PLANTED = 2436, WORLD_STATE_BARRELS_PLANTED = 2436,
SKARLOC_MOUNT_MODEL = 18223, SKARLOC_MOUNT_MODEL = 18223,

View File

@@ -5,7 +5,6 @@
*/ */
#include "CreatureTextMgr.h" #include "CreatureTextMgr.h"
#include "ObjectMgr.h"
#include "ruins_of_ahnqiraj.h" #include "ruins_of_ahnqiraj.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"

View File

@@ -4,7 +4,6 @@
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*/ */
#include "ObjectMgr.h"
#include "ruins_of_ahnqiraj.h" #include "ruins_of_ahnqiraj.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"

View File

@@ -179,8 +179,7 @@ public:
//Charge_Timer //Charge_Timer
if (Charge_Timer <= diff) if (Charge_Timer <= diff)
{ {
Unit* target = nullptr; Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0);
target = SelectTarget(SELECT_TARGET_RANDOM, 0);
if (target) if (target)
{ {
DoCast(target, SPELL_CHARGE); DoCast(target, SPELL_CHARGE);

View File

@@ -268,13 +268,13 @@ public:
{ {
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0)) if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
{ {
Creature* Spawned = nullptr;
//Spawn claw tentacle on the random target //Spawn claw tentacle on the random target
Spawned = me->SummonCreature(NPC_CLAW_TENTACLE, *target, TEMPSUMMON_CORPSE_DESPAWN, 500); Creature* spawned = me->SummonCreature(NPC_CLAW_TENTACLE, *target, TEMPSUMMON_CORPSE_DESPAWN, 500);
if (Spawned && Spawned->AI()) if (spawned && spawned->AI())
Spawned->AI()->AttackStart(target); {
spawned->AI()->AttackStart(target);
}
} }
//One claw tentacle every 12.5 seconds //One claw tentacle every 12.5 seconds
@@ -548,7 +548,7 @@ public:
Unit* unit = ObjectAccessor::GetUnit(*me, i->first); Unit* unit = ObjectAccessor::GetUnit(*me, i->first);
//Only units out of stomach //Only units out of stomach
if (unit && i->second == false) if (unit && !i->second)
temp.push_back(unit); temp.push_back(unit);
++i; ++i;
@@ -692,7 +692,7 @@ public:
Unit* unit = ObjectAccessor::GetUnit(*me, i->first); Unit* unit = ObjectAccessor::GetUnit(*me, i->first);
//Only move units in stomach //Only move units in stomach
if (unit && i->second == true) if (unit && i->second)
{ {
//Teleport each player out //Teleport each player out
DoTeleportPlayer(unit, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ() + 10, float(rand() % 6)); DoTeleportPlayer(unit, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ() + 10, float(rand() % 6));
@@ -723,7 +723,7 @@ public:
Unit* unit = ObjectAccessor::GetUnit(*me, i->first); Unit* unit = ObjectAccessor::GetUnit(*me, i->first);
//Only apply to units in stomach //Only apply to units in stomach
if (unit && i->second == true) if (unit && i->second)
{ {
//Cast digestive acid on them //Cast digestive acid on them
DoCast(unit, SPELL_DIGESTIVE_ACID, true); DoCast(unit, SPELL_DIGESTIVE_ACID, true);

View File

@@ -105,8 +105,7 @@ public:
//ChangeTarget_Timer //ChangeTarget_Timer
if (Submerged && ChangeTarget_Timer <= diff) if (Submerged && ChangeTarget_Timer <= diff)
{ {
Unit* target = nullptr; Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0);
target = SelectTarget(SELECT_TARGET_RANDOM, 0);
if (target) if (target)
me->NearTeleportTo(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), me->GetOrientation()); me->NearTeleportTo(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), me->GetOrientation());

View File

@@ -475,7 +475,6 @@ public:
uint32 Scorpions_Timer; uint32 Scorpions_Timer;
int Rand; int Rand;
int RandX; int RandX;
int RandY;
Creature* Summoned; Creature* Summoned;
@@ -526,10 +525,11 @@ public:
//Blizzard_Timer //Blizzard_Timer
if (Blizzard_Timer <= diff) if (Blizzard_Timer <= diff)
{ {
Unit* target = nullptr; Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 45, true);
target = SelectTarget(SELECT_TARGET_RANDOM, 0, 45, true);
if (target) if (target)
{
DoCast(target, SPELL_BLIZZARD); DoCast(target, SPELL_BLIZZARD);
}
Blizzard_Timer = 15000 + rand() % 15000; Blizzard_Timer = 15000 + rand() % 15000;
} }
else Blizzard_Timer -= diff; else Blizzard_Timer -= diff;

View File

@@ -15,7 +15,6 @@ EndScriptData */
#include "CellImpl.h" #include "CellImpl.h"
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "GridNotifiersImpl.h" #include "GridNotifiersImpl.h"
#include "Item.h"
#include "Player.h" #include "Player.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"

View File

@@ -5,7 +5,6 @@
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "GridNotifiersImpl.h" #include "GridNotifiersImpl.h"
#include "InstanceScript.h" #include "InstanceScript.h"
#include "Player.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "TemporarySummon.h" #include "TemporarySummon.h"
#include "zulfarrak.h" #include "zulfarrak.h"

View File

@@ -79,8 +79,7 @@ public:
{ {
Talk(SAY_TELEPORT); Talk(SAY_TELEPORT);
ThreatContainer::StorageType threatlist = me->getThreatManager().getThreatList(); ThreatContainer::StorageType threatlist = me->getThreatManager().getThreatList();
ThreatContainer::StorageType::const_iterator i = threatlist.begin(); for (auto i = threatlist.begin(); i != threatlist.end(); ++i)
for (i = threatlist.begin(); i != threatlist.end(); ++i)
{ {
Unit* unit = ObjectAccessor::GetUnit(*me, (*i)->getUnitGuid()); Unit* unit = ObjectAccessor::GetUnit(*me, (*i)->getUnitGuid());
if (unit && (unit->GetTypeId() == TYPEID_PLAYER)) if (unit && (unit->GetTypeId() == TYPEID_PLAYER))

View File

@@ -70,12 +70,10 @@ void AddSC_dustwallow_marsh();
void AddSC_felwood(); void AddSC_felwood();
void AddSC_feralas(); void AddSC_feralas();
void AddSC_moonglade(); void AddSC_moonglade();
void AddSC_mulgore();
void AddSC_orgrimmar(); void AddSC_orgrimmar();
void AddSC_silithus(); void AddSC_silithus();
void AddSC_stonetalon_mountains(); void AddSC_stonetalon_mountains();
void AddSC_tanaris(); void AddSC_tanaris();
void AddSC_teldrassil();
void AddSC_the_barrens(); void AddSC_the_barrens();
void AddSC_thousand_needles(); void AddSC_thousand_needles();
void AddSC_thunder_bluff(); void AddSC_thunder_bluff();
@@ -152,12 +150,10 @@ void AddKalimdorScripts()
AddSC_felwood(); AddSC_felwood();
AddSC_feralas(); AddSC_feralas();
AddSC_moonglade(); AddSC_moonglade();
AddSC_mulgore();
AddSC_orgrimmar(); AddSC_orgrimmar();
AddSC_silithus(); AddSC_silithus();
AddSC_stonetalon_mountains(); AddSC_stonetalon_mountains();
AddSC_tanaris(); AddSC_tanaris();
AddSC_teldrassil();
AddSC_the_barrens(); AddSC_the_barrens();
AddSC_thousand_needles(); AddSC_thousand_needles();
AddSC_thunder_bluff(); AddSC_thunder_bluff();

View File

@@ -183,16 +183,19 @@ public:
RemoveSummons(); RemoveSummons();
me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER); me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
Creature* cr = nullptr; if (Creature* cr = me->SummonCreature(NPC_RIGGER_GIZELTON, *me))
if ((cr = me->SummonCreature(NPC_RIGGER_GIZELTON, *me)))
{ {
cr->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER); cr->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
summons[0] = cr->GetGUID(); summons[0] = cr->GetGUID();
} }
if ((cr = me->SummonCreature(NPC_CARAVAN_KODO, *me))) if (Creature* cr = me->SummonCreature(NPC_CARAVAN_KODO, *me))
{
summons[1] = cr->GetGUID(); summons[1] = cr->GetGUID();
if ((cr = me->SummonCreature(NPC_CARAVAN_KODO, *me))) }
if (Creature* cr = me->SummonCreature(NPC_CARAVAN_KODO, *me))
{
summons[2] = cr->GetGUID(); summons[2] = cr->GetGUID();
}
SummonsFollow(); SummonsFollow();
} }

View File

@@ -19,7 +19,6 @@ EndContentData */
#include "Player.h" #include "Player.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptedEscortAI.h"
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "SpellScript.h" #include "SpellScript.h"

View File

@@ -17,7 +17,6 @@ EndScriptData */
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "SpellScript.h" #include "SpellScript.h"
#include "WorldSession.h"
/*###### /*######
## npc_oox22fe ## npc_oox22fe

View File

@@ -1,15 +0,0 @@
/*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*/
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "ScriptMgr.h"
#include "SpellInfo.h"
void AddSC_mulgore()
{
}

View File

@@ -443,8 +443,11 @@ public:
void HandleAnimation() void HandleAnimation()
{ {
Player* player = ObjectAccessor::GetPlayer(*me, PlayerGUID); Player* player = ObjectAccessor::GetPlayer(*me, PlayerGUID);
if (!player) if (!player)
{
return; return;
}
Creature* Fandral = player->FindNearestCreature(C_FANDRAL_STAGHELM, 100.0f); Creature* Fandral = player->FindNearestCreature(C_FANDRAL_STAGHELM, 100.0f);
Creature* Arygos = player->FindNearestCreature(C_ARYGOS, 100.0f); Creature* Arygos = player->FindNearestCreature(C_ARYGOS, 100.0f);
@@ -455,7 +458,7 @@ public:
return; return;
AnimationTimer = EventAnim[AnimationCount].Timer; AnimationTimer = EventAnim[AnimationCount].Timer;
if (eventEnd == false) if (!eventEnd)
{ {
switch (AnimationCount) switch (AnimationCount)
{ {
@@ -636,10 +639,9 @@ public:
case 51: case 51:
{ {
uint32 entries[4] = { 15423, 15424, 15414, 15422 }; uint32 entries[4] = { 15423, 15424, 15414, 15422 };
Unit* mob = nullptr;
for (uint8 i = 0; i < 4; ++i) for (uint8 i = 0; i < 4; ++i)
{ {
mob = player->FindNearestCreature(entries[i], 50, me); Unit* mob = player->FindNearestCreature(entries[i], 50, me);
while (mob) while (mob)
{ {
mob->RemoveFromWorld(); mob->RemoveFromWorld();
@@ -675,8 +677,7 @@ public:
me->GetMotionMaster()->MoveCharge(-8117.99f, 1532.24f, 3.94f, 4); me->GetMotionMaster()->MoveCharge(-8117.99f, 1532.24f, 3.94f, 4);
break; break;
case 60: case 60:
if (player) Talk(ANACHRONOS_SAY_10, player);
Talk(ANACHRONOS_SAY_10, player);
me->GetMotionMaster()->MoveCharge(-8113.46f, 1524.16f, 2.89f, 4); me->GetMotionMaster()->MoveCharge(-8113.46f, 1524.16f, 2.89f, 4);
break; break;
case 61: case 61:
@@ -926,8 +927,6 @@ public:
if (Group* EventGroup = player->GetGroup()) if (Group* EventGroup = player->GetGroup())
{ {
Player* groupMember = nullptr;
uint8 GroupMemberCount = 0; uint8 GroupMemberCount = 0;
uint8 DeadMemberCount = 0; uint8 DeadMemberCount = 0;
uint8 FailedMemberCount = 0; uint8 FailedMemberCount = 0;
@@ -936,7 +935,7 @@ public:
for (Group::member_citerator itr = members.begin(); itr != members.end(); ++itr) for (Group::member_citerator itr = members.begin(); itr != members.end(); ++itr)
{ {
groupMember = ObjectAccessor::GetPlayer(*me, itr->guid); Player* groupMember = ObjectAccessor::GetPlayer(*me, itr->guid);
if (!groupMember) if (!groupMember)
continue; continue;
if (!groupMember->IsWithinDistInMap(me, EVENT_AREA_RADIUS) && groupMember->GetQuestStatus(QUEST_A_PAWN_ON_THE_ETERNAL_BOARD) == QUEST_STATUS_INCOMPLETE) if (!groupMember->IsWithinDistInMap(me, EVENT_AREA_RADIUS) && groupMember->GetQuestStatus(QUEST_A_PAWN_ON_THE_ETERNAL_BOARD) == QUEST_STATUS_INCOMPLETE)
@@ -997,7 +996,7 @@ void npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::JustDied(Unit* /*slayer*/)
if (Creature* mob = ObjectAccessor::GetCreature(*me, MobGUID)) if (Creature* mob = ObjectAccessor::GetCreature(*me, MobGUID))
if (npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI* triggerAI = CAST_AI(npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI, mob->AI())) if (npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI* triggerAI = CAST_AI(npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI, mob->AI()))
triggerAI->LiveCounter(); triggerAI->LiveCounter();
}; }
/*##### /*#####
# go_crystalline_tear # go_crystalline_tear

View File

@@ -1,25 +0,0 @@
/*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*/
/* ScriptData
SDName: Teldrassil
SD%Complete: 100
SDComment: Quest support: 938
SDCategory: Teldrassil
EndScriptData */
/* ContentData
npc_mist
EndContentData */
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptedFollowerAI.h"
#include "ScriptMgr.h"
void AddSC_teldrassil()
{
}

View File

@@ -271,7 +271,6 @@ enum TwiggyFlathead
NPC_BIG_WILL = 6238, NPC_BIG_WILL = 6238,
NPC_AFFRAY_CHALLENGER = 6240, NPC_AFFRAY_CHALLENGER = 6240,
SAY_BIG_WILL_READY = 0,
SAY_TWIGGY_FLATHEAD_BEGIN = 0, SAY_TWIGGY_FLATHEAD_BEGIN = 0,
SAY_TWIGGY_FLATHEAD_FRAY = 1, SAY_TWIGGY_FLATHEAD_FRAY = 1,
SAY_TWIGGY_FLATHEAD_DOWN = 2, SAY_TWIGGY_FLATHEAD_DOWN = 2,
@@ -466,7 +465,7 @@ public:
EnterEvadeMode(); EnterEvadeMode();
return; return;
} }
else if (creature) // Makes BIG WILL attackable. else // Makes BIG WILL attackable.
{ {
creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);