Skip to content

Commit 920375f

Browse files
author
NoFantasy
committed
[1545] Restore compile after movement generator changes in Mangos. Requires Mangos rev 9198+
Restore compile after movement generator changes in Mangos. Requires Mangos rev 9198+ git-svn-id: https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2@1545 5f9c896b-1e26-0410-94da-f77f675e2462
1 parent 8e02570 commit 920375f

14 files changed

Lines changed: 25 additions & 23 deletions

File tree

base/escort_ai.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ void npc_escortAI::EnterEvadeMode()
192192
{
193193
debug_log("SD2: EscortAI has left combat and is now returning to CombatStartPosition.");
194194

195-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
195+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
196196
{
197197
AddEscortState(STATE_ESCORT_RETURNING);
198198

@@ -203,7 +203,7 @@ void npc_escortAI::EnterEvadeMode()
203203
}
204204
else
205205
{
206-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
206+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
207207
m_creature->GetMotionMaster()->MoveTargetedHome();
208208
}
209209

base/follower_ai.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ void FollowerAI::EnterEvadeMode()
166166
{
167167
debug_log("SD2: FollowerAI left combat, returning to CombatStartPosition.");
168168

169-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
169+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
170170
{
171171
float fPosX, fPosY, fPosZ;
172172
m_creature->GetCombatStartPosition(fPosX, fPosY, fPosZ);
@@ -175,7 +175,7 @@ void FollowerAI::EnterEvadeMode()
175175
}
176176
else
177177
{
178-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
178+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
179179
m_creature->GetMotionMaster()->MoveTargetedHome();
180180
}
181181

base/guard_ai.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void guardAI::UpdateAI(const uint32 diff)
164164
GlobalCooldown = GENERIC_CREATURE_COOLDOWN;
165165

166166
} //If no spells available and we arn't moving run to target
167-
else if ((*m_creature).GetMotionMaster()->GetCurrentMovementGeneratorType()!=TARGETED_MOTION_TYPE)
167+
else if ((*m_creature).GetMotionMaster()->GetCurrentMovementGeneratorType()!=CHASE_MOTION_TYPE)
168168
{
169169
//Cancel our current spell and then mutate new movement generator
170170
m_creature->InterruptNonMeleeSpells(false);

scripts/eastern_kingdoms/zulaman/boss_janalai.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ struct MANGOS_DLL_DECL boss_janalaiAI : public ScriptedAI
401401
DoScriptText(SAY_FIRE_BOMBS, m_creature);
402402

403403
//first clear movement
404-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
404+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
405405
m_creature->GetMotionMaster()->MovementExpired();
406406

407407
//then teleport self

scripts/eastern_kingdoms/zulaman/boss_malacrass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,13 +476,13 @@ struct MANGOS_DLL_DECL mob_alyson_antilleAI : public boss_malacrass_addAI
476476
DoCast(pTarget, SPELL_FLASH_HEAL);
477477

478478
//if not already chasing, start chase
479-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() != TARGETED_MOTION_TYPE)
479+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() != CHASE_MOTION_TYPE)
480480
m_creature->GetMotionMaster()->MoveChase(m_creature->getVictim(), 20.0f);
481481
}
482482
else
483483
{
484484
//if chasing, start follow target instead
485-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
485+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
486486
{
487487
m_creature->GetMotionMaster()->MovementExpired();
488488
m_creature->GetMotionMaster()->MoveFollow(pTarget, 20.0f, 0.0f);

scripts/northrend/ulduar/halls_of_lightning/boss_ionar.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ struct MANGOS_DLL_DECL boss_ionarAI : public ScriptedAI
185185
{
186186
if (pSpark->isAlive())
187187
{
188-
if (pSpark->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
188+
if (pSpark->GetMotionMaster()->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
189189
pSpark->GetMotionMaster()->MovementExpired();
190190

191191
pSpark->SetSpeed(MOVE_RUN, pSpark->GetCreatureInfo()->speed * 2);
@@ -248,7 +248,7 @@ struct MANGOS_DLL_DECL boss_ionarAI : public ScriptedAI
248248
m_uiSplit_Timer = 25000;
249249
m_bIsSplitPhase = true;
250250

251-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() != TARGETED_MOTION_TYPE)
251+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() != CHASE_MOTION_TYPE)
252252
{
253253
if (m_creature->getVictim())
254254
m_creature->GetMotionMaster()->MoveChase(m_creature->getVictim());
@@ -318,7 +318,7 @@ bool EffectDummyCreature_boss_ionar(Unit* pCaster, uint32 uiSpellId, uint32 uiEf
318318
pCreatureTarget->AttackStop();
319319
pCreatureTarget->SetVisibility(VISIBILITY_OFF);
320320

321-
if (pCreatureTarget->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
321+
if (pCreatureTarget->GetMotionMaster()->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
322322
pCreatureTarget->GetMotionMaster()->MovementExpired();
323323

324324
//always return true when we are handling this spell and effect

scripts/northrend/ulduar/halls_of_lightning/boss_volkhan.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ struct MANGOS_DLL_DECL boss_volkhanAI : public ScriptedAI
216216
{
217217
if (m_uiPause_Timer < uiDiff)
218218
{
219-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() != TARGETED_MOTION_TYPE)
219+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() != CHASE_MOTION_TYPE)
220220
{
221221
if (m_creature->getVictim())
222222
m_creature->GetMotionMaster()->MoveChase(m_creature->getVictim());
@@ -333,7 +333,7 @@ bool EffectDummyCreature_npc_volkhan_anvil(Unit* pCaster, uint32 uiSpellId, uint
333333

334334
pCaster->AttackStop();
335335

336-
if (pCaster->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
336+
if (pCaster->GetMotionMaster()->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
337337
pCaster->GetMotionMaster()->MovementExpired();
338338

339339
((Creature*)pCaster)->GetMap()->CreatureRelocation((Creature*)pCaster, fX, fY, fZ, pCreatureTarget->GetOrientation());
@@ -411,7 +411,7 @@ struct MANGOS_DLL_DECL mob_molten_golemAI : public ScriptedAI
411411
m_creature->RemoveAllAuras();
412412
m_creature->AttackStop();
413413

414-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
414+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
415415
m_creature->GetMotionMaster()->MovementExpired();
416416

417417
uiDamage = m_creature->GetHealth()-1;

scripts/outland/auchindoun/mana_tombs/boss_nexusprince_shaffar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ struct MANGOS_DLL_DECL boss_nexusprince_shaffarAI : public ScriptedAI
156156

157157
//expire movement, will prevent from running right back to victim after cast
158158
//(but should MoveChase be used again at a certain time or should he not move?)
159-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
159+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
160160
m_creature->GetMotionMaster()->MovementExpired();
161161

162162
DoCast(m_creature,SPELL_BLINK);

scripts/outland/coilfang_reservoir/serpent_shrine/boss_lady_vashj.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ struct MANGOS_DLL_DECL boss_lady_vashjAI : public ScriptedAI
335335
{
336336
DoScriptText(SAY_PHASE2, m_creature);
337337

338-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
338+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
339339
{
340340
//set false, so MoveChase is not triggered in AttackStart
341341
SetCombatMovement(false);
@@ -478,7 +478,7 @@ struct MANGOS_DLL_DECL boss_lady_vashjAI : public ScriptedAI
478478
SetCombatMovement(true);
479479

480480
//return to chase top aggro
481-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() != TARGETED_MOTION_TYPE)
481+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() != CHASE_MOTION_TYPE)
482482
m_creature->GetMotionMaster()->MoveChase(m_creature->getVictim());
483483

484484
m_uiPhase = PHASE_3;

scripts/outland/coilfang_reservoir/serpent_shrine/boss_leotheras_the_blind.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ struct MANGOS_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
169169
{
170170
DoScriptText(SAY_SWITCH_TO_DEMON, m_creature);
171171

172-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == TARGETED_MOTION_TYPE)
172+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
173173
{
174174
//set false, so MoveChase is not triggered in AttackStart
175175
SetCombatMovement(false);
@@ -217,7 +217,7 @@ struct MANGOS_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
217217
//switch to nightelf form
218218
m_creature->SetDisplayId(MODEL_NIGHTELF);
219219

220-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() != TARGETED_MOTION_TYPE)
220+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() != CHASE_MOTION_TYPE)
221221
m_creature->GetMotionMaster()->MoveChase(m_creature->getVictim());
222222

223223
//set true
@@ -246,7 +246,7 @@ struct MANGOS_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
246246
//switch to nightelf form
247247
m_creature->SetDisplayId(MODEL_NIGHTELF);
248248

249-
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() != TARGETED_MOTION_TYPE)
249+
if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() != CHASE_MOTION_TYPE)
250250
m_creature->GetMotionMaster()->MoveChase(m_creature->getVictim());
251251

252252
//set true

0 commit comments

Comments
 (0)