Skip to content
Browse files

[sd2_mr0395] Karazhan: Fixed boss Midnight. Closed #112

  • Loading branch information...
1 parent 16cfd9f commit 0bf84e157825df4dc8a8051baf95e54985f18a75 @Sar777 Sar777 committed Apr 15, 2012
Showing with 3 additions and 4 deletions.
  1. +2 −3 scripts/eastern_kingdoms/karazhan/boss_midnight.cpp
  2. +1 −1 sd2_revision_R2.h
View
5 scripts/eastern_kingdoms/karazhan/boss_midnight.cpp
@@ -96,8 +96,7 @@ struct MANGOS_DLL_DECL boss_midnightAI : public ScriptedAI
fNewX = m_creature->GetPositionX() + cos(fAngle)*(fDistance/2);
fNewY = m_creature->GetPositionY() + sin(fAngle)*(fDistance/2);
- pAttumen->GetMotionMaster()->Clear();
- pAttumen->GetMotionMaster()->MovePoint(0, fNewX, fNewY, fNewZ);
+ pAttumen->NearTeleportTo(fNewX, fNewY, fNewZ + 1.0f, 0.0f);
m_uiMount_Timer = 1000;
}
@@ -116,7 +115,7 @@ struct MANGOS_DLL_DECL boss_midnightAI : public ScriptedAI
{
m_uiPhase = 2;
- if (Creature* pAttumen = m_creature->SummonCreature(SUMMON_ATTUMEN, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 30000))
+ if (Creature* pAttumen = m_creature->SummonCreature(SUMMON_ATTUMEN, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_DEAD_DESPAWN, 0))
{
m_attumenGuid = pAttumen->GetObjectGuid();
pAttumen->AI()->AttackStart(m_creature->getVictim());
View
2 sd2_revision_R2.h
@@ -1,4 +1,4 @@
#ifndef __SD2_REVISION_R2_H__
#define __SD2_REVISION_R2_H__
- #define SD2_REVISION_R2 "0394"
+ #define SD2_REVISION_R2 "0395"
#endif // __SD2_REVISION_R2_H__

0 comments on commit 0bf84e1

Please sign in to comment.
Something went wrong with that request. Please try again.