*Fix build.
--HG-- branch : trunk
This commit is contained in:
@@ -75,7 +75,7 @@ struct TRINITY_DLL_DECL npc_bartlebyAI : public ScriptedAI
|
|||||||
void Reset()
|
void Reset()
|
||||||
{
|
{
|
||||||
m_creature->setFaction(11);
|
m_creature->setFaction(11);
|
||||||
m_creature->setEmoteState(7);
|
m_creature->SetUInt32Value(UNIT_NPC_EMOTESTATE, 7);
|
||||||
|
|
||||||
PlayerGUID = 0;
|
PlayerGUID = 0;
|
||||||
}
|
}
|
||||||
@@ -132,7 +132,7 @@ struct TRINITY_DLL_DECL npc_dashel_stonefistAI : public ScriptedAI
|
|||||||
void Reset()
|
void Reset()
|
||||||
{
|
{
|
||||||
m_creature->setFaction(11);
|
m_creature->setFaction(11);
|
||||||
m_creature->setEmoteState(7);
|
m_creature->SetUInt32Value(UNIT_NPC_EMOTESTATE, 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DamageTaken(Unit *done_by, uint32 & damage)
|
void DamageTaken(Unit *done_by, uint32 & damage)
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ struct TRINITY_DLL_DECL eye_of_cthunAI : public Scripted_NoMovementAI
|
|||||||
DoCast(m_creature,SPELL_RED_COLORATION);
|
DoCast(m_creature,SPELL_RED_COLORATION);
|
||||||
|
|
||||||
//Freeze animation
|
//Freeze animation
|
||||||
m_creature->setEmoteState(53);
|
m_creature->SetUInt32Value(UNIT_NPC_EMOTESTATE, 53);
|
||||||
|
|
||||||
//Darkbeam for 35 seconds
|
//Darkbeam for 35 seconds
|
||||||
PhaseTimer = 35000;
|
PhaseTimer = 35000;
|
||||||
@@ -351,7 +351,7 @@ struct TRINITY_DLL_DECL eye_of_cthunAI : public Scripted_NoMovementAI
|
|||||||
m_creature->RemoveAurasDueToSpell(SPELL_RED_COLORATION);
|
m_creature->RemoveAurasDueToSpell(SPELL_RED_COLORATION);
|
||||||
|
|
||||||
//Freeze animation
|
//Freeze animation
|
||||||
m_creature->setEmoteState(0);
|
m_creature->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
|
||||||
m_creature->SetUInt32Value(UNIT_FIELD_FLAGS, 0);
|
m_creature->SetUInt32Value(UNIT_FIELD_FLAGS, 0);
|
||||||
|
|
||||||
//Eye Beam for 50 seconds
|
//Eye Beam for 50 seconds
|
||||||
@@ -397,7 +397,7 @@ struct TRINITY_DLL_DECL eye_of_cthunAI : public Scripted_NoMovementAI
|
|||||||
m_creature->RemoveAurasDueToSpell(SPELL_RED_COLORATION);
|
m_creature->RemoveAurasDueToSpell(SPELL_RED_COLORATION);
|
||||||
|
|
||||||
//Reset to normal emote state and prevent select and attack
|
//Reset to normal emote state and prevent select and attack
|
||||||
m_creature->setEmoteState(0);
|
m_creature->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
|
||||||
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NON_ATTACKABLE);
|
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NON_ATTACKABLE);
|
||||||
|
|
||||||
//Remove Target field
|
//Remove Target field
|
||||||
|
|||||||
Reference in New Issue
Block a user