mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
probably fix crash with boss_paletressAI::MovementInform
to our script writers: please, turn on the brain --HG-- branch : trunk
This commit is contained in:
@@ -216,9 +216,9 @@ struct boss_paletressAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void MovementInform(uint32 MovementType, uint32 Data)
|
||||
void MovementInform(uint32 MovementType, uint32 Point)
|
||||
{
|
||||
if (MovementType != POINT_MOTION_TYPE)
|
||||
if (MovementType != POINT_MOTION_TYPE || Point != 0)
|
||||
return;
|
||||
|
||||
if (pInstance)
|
||||
|
||||
@@ -429,6 +429,7 @@ struct npc_tallhorn_stagAI : public ScriptedAI
|
||||
struct npc_tallhorn_stagAI : public ScriptedAI
|
||||
{
|
||||
npc_tallhorn_stagAI(Creature* pCreature) : ScriptedAI(pCreature) {}
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
// call this each update tick?
|
||||
@@ -465,6 +466,7 @@ struct npc_amberpine_woodsmanAI : public ScriptedAI
|
||||
m_uiTimer = 0;
|
||||
m_uiPhase = 1;
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
// call this each update tick?
|
||||
@@ -493,8 +495,7 @@ struct npc_amberpine_woodsmanAI : public ScriptedAI
|
||||
}
|
||||
else
|
||||
m_uiTimer -= uiDiff;
|
||||
}
|
||||
ScriptedAI::UpdateAI(uiDiff);
|
||||
}
|
||||
ScriptedAI::UpdateAI(uiDiff);
|
||||
|
||||
UpdateVictim();
|
||||
|
||||
Reference in New Issue
Block a user