Merge branch 'master' into 4.3.4
Conflicts: src/server/game/Entities/Creature/Creature.cpp src/server/game/Entities/Creature/Creature.h src/server/game/Entities/Creature/GossipDef.cpp src/server/game/Entities/Player/Player.cpp src/server/game/Entities/Transport/Transport.cpp src/server/game/Entities/Unit/Unit.cpp src/server/game/Globals/ObjectMgr.cpp src/server/game/Globals/ObjectMgr.h src/server/game/Handlers/QuestHandler.cpp src/server/game/Handlers/SpellHandler.cpp src/server/game/Handlers/TradeHandler.cpp src/server/game/Quests/QuestDef.h src/server/game/Spells/Auras/SpellAuraEffects.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_halazzi.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_janalai.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_arlokk.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_hakkar.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_jeklik.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_jindo.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_thekal.cpp src/server/scripts/EasternKingdoms/zone_arathi_highlands.cpp src/server/scripts/EasternKingdoms/zone_burning_steppes.cpp src/server/scripts/EasternKingdoms/zone_ghostlands.cpp src/server/scripts/EasternKingdoms/zone_hinterlands.cpp src/server/scripts/EasternKingdoms/zone_redridge_mountains.cpp src/server/scripts/EasternKingdoms/zone_swamp_of_sorrows.cpp src/server/scripts/Kalimdor/zone_azshara.cpp src/server/scripts/Kalimdor/zone_darkshore.cpp src/server/scripts/Kalimdor/zone_desolace.cpp src/server/scripts/Northrend/zone_dalaran.cpp src/tools/CMakeLists.txt
This commit is contained in:
commit
33c2bd5ce1
417 files changed
+6670
-6423
No files matched your search
@@ -212,7 +212,7 @@ class boss_keleseth : public CreatureScript
|
||||
|
||||
void SummonSkeletons()
|
||||
{
|
||||
// I could not found any spell casted for this
|
||||
// I could not found any spell cast for this
|
||||
for (uint8 i = 0; i < 4; ++i)
|
||||
me->SummonCreature(NPC_SKELETON, SkeletonSpawnPoint[0][0], SkeletonSpawnPoint[0][1], SKELETONSPAWN_Z, 0);
|
||||
}
|
||||
|
||||
@@ -358,7 +358,7 @@ class boss_dalronn_the_controller : public CreatureScript
|
||||
|
||||
if (ShadowBolt_Timer <= diff)
|
||||
{
|
||||
if (!me->IsNonMeleeSpellCasted(false))
|
||||
if (!me->IsNonMeleeSpellCast(false))
|
||||
{
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 0.0f, true))
|
||||
DoCast(target, SPELL_SHADOW_BOLT);
|
||||
@@ -370,7 +370,7 @@ class boss_dalronn_the_controller : public CreatureScript
|
||||
|
||||
if (Debilitate_Timer <= diff)
|
||||
{
|
||||
if (!me->IsNonMeleeSpellCasted(false))
|
||||
if (!me->IsNonMeleeSpellCast(false))
|
||||
{
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 0.0f, true))
|
||||
DoCast(target, SPELL_DEBILITATE);
|
||||
@@ -384,7 +384,7 @@ class boss_dalronn_the_controller : public CreatureScript
|
||||
{
|
||||
if (Summon_Timer <= diff)
|
||||
{
|
||||
if (!me->IsNonMeleeSpellCasted(false))
|
||||
if (!me->IsNonMeleeSpellCast(false))
|
||||
{
|
||||
DoCast(me, H_SPELL_SUMMON_SKELETONS);
|
||||
Summon_Timer = (rand()%10000) + 20000;
|
||||
|
||||
@@ -193,9 +193,10 @@ public:
|
||||
//Talk(SAY_DEATH);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* /*victim*/) OVERRIDE
|
||||
void KilledUnit(Unit* who) OVERRIDE
|
||||
{
|
||||
Talk(SAY_SLAY);
|
||||
if (who->GetTypeId() == TYPEID_PLAYER)
|
||||
Talk(SAY_SLAY);
|
||||
}
|
||||
|
||||
void DoAction(int32 actionId) OVERRIDE
|
||||
@@ -255,7 +256,7 @@ public:
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const OVERRIDE
|
||||
{
|
||||
return new npc_ravenous_furbolgAI(creature);
|
||||
return GetInstanceAI<npc_ravenous_furbolgAI>(creature);
|
||||
}
|
||||
|
||||
struct npc_ravenous_furbolgAI : public ScriptedAI
|
||||
@@ -363,7 +364,7 @@ public:
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const OVERRIDE
|
||||
{
|
||||
return new npc_frenzied_worgenAI(creature);
|
||||
return GetInstanceAI<npc_frenzied_worgenAI>(creature);
|
||||
}
|
||||
|
||||
struct npc_frenzied_worgenAI : public ScriptedAI
|
||||
@@ -437,8 +438,7 @@ public:
|
||||
who->SetInCombatWith(me);
|
||||
DoStartMovement(who);
|
||||
}
|
||||
if (instance)
|
||||
instance->SetBossState(DATA_GORTOK_PALEHOOF, IN_PROGRESS);
|
||||
instance->SetBossState(DATA_GORTOK_PALEHOOF, IN_PROGRESS);
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*killer*/) OVERRIDE
|
||||
@@ -474,7 +474,7 @@ public:
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const OVERRIDE
|
||||
{
|
||||
return new npc_ferocious_rhinoAI(creature);
|
||||
return GetInstanceAI<npc_ferocious_rhinoAI>(creature);
|
||||
}
|
||||
|
||||
struct npc_ferocious_rhinoAI : public ScriptedAI
|
||||
@@ -589,7 +589,7 @@ public:
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const OVERRIDE
|
||||
{
|
||||
return new npc_massive_jormungarAI(creature);
|
||||
return GetInstanceAI<npc_massive_jormungarAI>(creature);
|
||||
}
|
||||
|
||||
struct npc_massive_jormungarAI : public ScriptedAI
|
||||
@@ -690,7 +690,7 @@ public:
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const OVERRIDE
|
||||
{
|
||||
return new npc_palehoof_orbAI(creature);
|
||||
return GetInstanceAI<npc_palehoof_orbAI>(creature);
|
||||
}
|
||||
|
||||
struct npc_palehoof_orbAI : public ScriptedAI
|
||||
|
||||
@@ -133,7 +133,7 @@ enum Spells
|
||||
{
|
||||
// Skadi Spells
|
||||
SPELL_CRUSH = 50234,
|
||||
SPELL_POISONED_SPEAR = 50225, //isn't being casted =/
|
||||
SPELL_POISONED_SPEAR = 50225, //isn't being cast
|
||||
SPELL_WHIRLWIND = 50228, //random target, but not the tank approx. every 20s
|
||||
SPELL_RAPID_FIRE = 56570,
|
||||
SPELL_HARPOON_DAMAGE = 56578,
|
||||
@@ -162,7 +162,7 @@ public:
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const OVERRIDE
|
||||
{
|
||||
return new boss_skadiAI(creature);
|
||||
return GetInstanceAI<boss_skadiAI>(creature);
|
||||
}
|
||||
|
||||
struct boss_skadiAI : public ScriptedAI
|
||||
@@ -208,11 +208,8 @@ public:
|
||||
me->SetSpeed(MOVE_FLIGHT, 3.0f);
|
||||
if ((Unit::GetCreature(*me, m_uiGraufGUID) == NULL) && !me->IsMounted())
|
||||
me->SummonCreature(NPC_GRAUF, Location[0].GetPositionX(), Location[0].GetPositionY(), Location[0].GetPositionZ(), 3.0f);
|
||||
if (instance)
|
||||
{
|
||||
instance->SetBossState(DATA_SKADI_THE_RUTHLESS, NOT_STARTED);
|
||||
instance->DoStopTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT);
|
||||
}
|
||||
instance->SetBossState(DATA_SKADI_THE_RUTHLESS, NOT_STARTED);
|
||||
instance->DoStopTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT);
|
||||
}
|
||||
|
||||
void JustReachedHome() OVERRIDE
|
||||
@@ -235,15 +232,12 @@ public:
|
||||
m_uiMovementTimer = 1000;
|
||||
m_uiSummonTimer = 10000;
|
||||
me->SetInCombatWithZone();
|
||||
if (instance)
|
||||
{
|
||||
instance->SetBossState(DATA_SKADI_THE_RUTHLESS, IN_PROGRESS);
|
||||
instance->DoStartTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT);
|
||||
me->GetMotionMaster()->MoveJump(Location[0].GetPositionX(), Location[0].GetPositionY(), Location[0].GetPositionZ(), 5.0f, 10.0f);
|
||||
me->SetWalk(false);
|
||||
m_uiMountTimer = 1000;
|
||||
Summons.DespawnEntry(NPC_GRAUF);
|
||||
}
|
||||
instance->SetBossState(DATA_SKADI_THE_RUTHLESS, IN_PROGRESS);
|
||||
instance->DoStartTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT);
|
||||
me->GetMotionMaster()->MoveJump(Location[0].GetPositionX(), Location[0].GetPositionY(), Location[0].GetPositionZ(), 5.0f, 10.0f);
|
||||
me->SetWalk(false);
|
||||
m_uiMountTimer = 1000;
|
||||
Summons.DespawnEntry(NPC_GRAUF);
|
||||
}
|
||||
|
||||
void JustSummoned(Creature* summoned) OVERRIDE
|
||||
@@ -411,13 +405,13 @@ public:
|
||||
{
|
||||
Talk(SAY_DEATH);
|
||||
Summons.DespawnAll();
|
||||
if (instance)
|
||||
instance->SetBossState(DATA_SKADI_THE_RUTHLESS, DONE);
|
||||
instance->SetBossState(DATA_SKADI_THE_RUTHLESS, DONE);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* /*victim*/) OVERRIDE
|
||||
void KilledUnit(Unit* who) OVERRIDE
|
||||
{
|
||||
Talk(SAY_KILL);
|
||||
if (who->GetTypeId() == TYPEID_PLAYER)
|
||||
Talk(SAY_KILL);
|
||||
}
|
||||
|
||||
void SpawnMobs()
|
||||
|
||||
Reference in new issue
Block a user