*Fix build.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-30 22:19:54 -05:00
parent 82b03c856f
commit fe7f275784
@@ -113,7 +113,6 @@ float Pos[12][4] =
{3687.571777,-5126.831055,142.017807,0.604023},//RIGHT_FAR {3687.571777,-5126.831055,142.017807,0.604023},//RIGHT_FAR
{3707.990733,-5151.450195,142.032562,1.376855},//RIGHT_MIDDLE {3707.990733,-5151.450195,142.032562,1.376855},//RIGHT_MIDDLE
{3739.500000,-5141.883989,142.0141130, 2.121412}//RIGHT_NEAR {3739.500000,-5141.883989,142.0141130, 2.121412}//RIGHT_NEAR
}; };
struct TRINITY_DLL_DECL boss_kelthuzadAI : public ScriptedAI struct TRINITY_DLL_DECL boss_kelthuzadAI : public ScriptedAI
@@ -146,11 +145,11 @@ struct TRINITY_DLL_DECL boss_kelthuzadAI : public ScriptedAI
uint32 FrostBlast_Timer; uint32 FrostBlast_Timer;
uint32 Phase1_Timer; uint32 Phase1_Timer;
unit32 Phase; uint32 Phase;
void Reset() void Reset()
{ {
SummonWasters_Timer=3000 // 3s summon waster SummonWasters_Timer=3000; // 3s summon waster
SummonAbominations_Timer=25000; //25s summon abomination SummonAbominations_Timer=25000; //25s summon abomination
SummonAWeavers_Timer=20000; //20s summon Weavers SummonAWeavers_Timer=20000; //20s summon Weavers
@@ -212,7 +211,7 @@ struct TRINITY_DLL_DECL boss_kelthuzadAI : public ScriptedAI
Phase=2; Phase=2;
}else Phase1_Timer-=diff; }else Phase1_Timer-=diff;
if(phase == 1) if(Phase == 1)
{ {
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
EnterEvadeMode(); EnterEvadeMode();
@@ -330,7 +329,7 @@ struct TRINITY_DLL_DECL boss_kelthuzadAI : public ScriptedAI
if (target = SelectUnit(SELECT_TARGET_RANDOM,0)) if (target = SelectUnit(SELECT_TARGET_RANDOM,0))
{ {
//check if the target is a manaplayer //check if the target is a manaplayer
if ( (Player*)target->getPowerType()==POWER_MANA ) if ( ((Player*)target)->getPowerType()==POWER_MANA )
{ {
// if yes cast the SPELL_MANA_DETONATION // if yes cast the SPELL_MANA_DETONATION
DoCast(m_creature->getVictim(),SPELL_MANA_DETONATION); DoCast(m_creature->getVictim(),SPELL_MANA_DETONATION);
@@ -338,10 +337,6 @@ struct TRINITY_DLL_DECL boss_kelthuzadAI : public ScriptedAI
break; break;
//exit the circle //exit the circle
} }
else //debug
{
m_creature->Yell("A, no mana,you are cheat?",LANG_COMMON,target);
}
} }
} }
if (rand()%2) if (rand()%2)
@@ -359,10 +354,10 @@ struct TRINITY_DLL_DECL boss_kelthuzadAI : public ScriptedAI
{ {
//get the position of the target x,y,z,ang. //get the position of the target x,y,z,ang.
float x,y,z,ang; float x,y,z,ang;
x=(Player*)target->GetPositionX; x=target->GetPositionX();
y=(Player*)target->GetPositionY; y=target->GetPositionY();
z=(Player*)target->GetPositionZ; z=target->GetPositionZ();
ang=(Player*)target->GetOrientation; ang=target->GetOrientation();
//summon the MOB_SUMMON_FISSURE at this positon //summon the MOB_SUMMON_FISSURE at this positon
Creature *Fissure= m_creature->SummonCreature(MOB_SUMMON_FISSURE,x,y,z,ang, TEMPSUMMON_CORPSE_DESPAWN, 0); Creature *Fissure= m_creature->SummonCreature(MOB_SUMMON_FISSURE,x,y,z,ang, TEMPSUMMON_CORPSE_DESPAWN, 0);
if(Fissure) if(Fissure)
@@ -405,7 +400,7 @@ struct TRINITY_DLL_DECL boss_kelthuzadAI : public ScriptedAI
if(GuardiansOfIcecrown_Timer < diff) if(GuardiansOfIcecrown_Timer < diff)
{ {
//Summon a Guardian of Icecrown in a random alcove //Summon a Guardian of Icecrown in a random alcove
Unit* pUnit = NULL; TempSummon* pUnit = NULL;
switch(rand()%3) switch(rand()%3)
{ {
case 0: case 0: