*Update to Mangos 7206.
--HG-- branch : trunk
This commit is contained in:
@@ -351,7 +351,7 @@ struct TRINITY_DLL_DECL npc_injured_patientAI : public ScriptedAI
|
||||
//no regen health
|
||||
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IN_COMBAT);
|
||||
//to make them lay with face down
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, PLAYER_STATE_DEAD);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, UNIT_STAND_STATE_DEAD);
|
||||
|
||||
uint32 mobId = m_creature->GetEntry();
|
||||
|
||||
@@ -392,7 +392,7 @@ struct TRINITY_DLL_DECL npc_injured_patientAI : public ScriptedAI
|
||||
//regen health
|
||||
m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IN_COMBAT);
|
||||
//stand up
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, PLAYER_STATE_NONE);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, UNIT_STAND_STATE_STAND);
|
||||
DoSay(SAY_DOC1,LANG_UNIVERSAL,NULL);
|
||||
|
||||
uint32 mobId = m_creature->GetEntry();
|
||||
|
||||
@@ -1957,7 +1957,7 @@ void boss_illidan_stormrageAI::HandleTalkSequence()
|
||||
{
|
||||
Maiev->CastSpell(Maiev, SPELL_TELEPORT_VISUAL, true);
|
||||
Maiev->setDeathState(JUST_DIED);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1,PLAYER_STATE_DEAD);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1,UNIT_STAND_STATE_DEAD);
|
||||
}
|
||||
break;
|
||||
case 21: // Kill ourself.
|
||||
|
||||
@@ -118,7 +118,7 @@ bool GossipHello_npc_tirion_fordring(Player *player, Creature *_Creature)
|
||||
if (_Creature->isQuestGiver())
|
||||
player->PrepareQuestMenu( _Creature->GetGUID() );
|
||||
|
||||
if (player->GetQuestStatus(5742) == QUEST_STATUS_INCOMPLETE && player->getStandState() == PLAYER_STATE_SIT )
|
||||
if (player->GetQuestStatus(5742) == QUEST_STATUS_INCOMPLETE && player->getStandState() == UNIT_STAND_STATE_SIT )
|
||||
player->ADD_GOSSIP_ITEM( 0, "I am ready to hear your tale, Tirion.", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
|
||||
player->SEND_GOSSIP_MENU(_Creature->GetNpcTextId(), _Creature->GetGUID());
|
||||
|
||||
@@ -229,7 +229,7 @@ struct TRINITY_DLL_DECL npc_secondTrialAI : public ScriptedAI
|
||||
questPhase = 0;
|
||||
summonerGuid = 0;
|
||||
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, PLAYER_STATE_KNEEL);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, UNIT_STAND_STATE_KNEEL);
|
||||
m_creature->setFaction(FACTION_FRIENDLY);
|
||||
|
||||
spellFlashLight = false;
|
||||
@@ -268,7 +268,7 @@ struct TRINITY_DLL_DECL npc_secondTrialAI : public ScriptedAI
|
||||
if ( questPhase == 1 ) {
|
||||
|
||||
if ( timer < diff ) {
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, PLAYER_STATE_NONE);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, UNIT_STAND_STATE_STAND);
|
||||
m_creature->setFaction(FACTION_HOSTILE);
|
||||
questPhase = 0;
|
||||
|
||||
|
||||
@@ -905,7 +905,7 @@ void PretendToDie(Creature* _Creature)
|
||||
_Creature->SetUInt64Value(UNIT_FIELD_TARGET,0);
|
||||
_Creature->GetMotionMaster()->Clear();
|
||||
_Creature->GetMotionMaster()->MoveIdle();
|
||||
_Creature->SetUInt32Value(UNIT_FIELD_BYTES_1,PLAYER_STATE_DEAD);
|
||||
_Creature->SetUInt32Value(UNIT_FIELD_BYTES_1,UNIT_STAND_STATE_DEAD);
|
||||
};
|
||||
|
||||
void Resurrect(Creature* target)
|
||||
|
||||
@@ -125,7 +125,7 @@ struct TRINITY_DLL_DECL mob_lumpAI : public ScriptedAI
|
||||
m_creature->DeleteThreatList();
|
||||
m_creature->CombatStop();
|
||||
m_creature->setFaction(1080); //friendly
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, PLAYER_STATE_SIT);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, UNIT_STAND_STATE_SIT);
|
||||
DoScriptText(LUMP_DEFEAT, m_creature);
|
||||
|
||||
bReset = true;
|
||||
@@ -139,7 +139,7 @@ struct TRINITY_DLL_DECL mob_lumpAI : public ScriptedAI
|
||||
m_creature->RemoveAura(SPELL_VISUAL_SLEEP,0);
|
||||
|
||||
if (!m_creature->IsStandState())
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, PLAYER_STATE_NONE);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, UNIT_STAND_STATE_STAND);
|
||||
|
||||
switch(rand()%2)
|
||||
{
|
||||
|
||||
@@ -441,8 +441,8 @@ struct TRINITY_DLL_DECL npc_commander_dawnforgeAI : public ScriptedAI
|
||||
ardonis->SendUpdateToPlayer(player);
|
||||
|
||||
//Set them to kneel
|
||||
m_creature->SetStandState(PLAYER_STATE_KNEEL);
|
||||
ardonis->SetStandState(PLAYER_STATE_KNEEL);
|
||||
m_creature->SetStandState(UNIT_STAND_STATE_KNEEL);
|
||||
ardonis->SetStandState(UNIT_STAND_STATE_KNEEL);
|
||||
}
|
||||
|
||||
//Set them back to each other
|
||||
@@ -466,8 +466,8 @@ struct TRINITY_DLL_DECL npc_commander_dawnforgeAI : public ScriptedAI
|
||||
ardonis->SendUpdateToPlayer(player);
|
||||
|
||||
//Set state
|
||||
m_creature->SetStandState(PLAYER_STATE_NONE);
|
||||
ardonis->SetStandState(PLAYER_STATE_NONE);
|
||||
m_creature->SetStandState(UNIT_STAND_STATE_STAND);
|
||||
ardonis->SetStandState(UNIT_STAND_STATE_STAND);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ struct TRINITY_DLL_DECL boss_kalecgosAI : public ScriptedAI
|
||||
m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE + UNIT_FLAG_NOT_SELECTABLE);
|
||||
m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT + MOVEMENTFLAG_LEVITATING);
|
||||
m_creature->SetVisibility(VISIBILITY_ON);
|
||||
m_creature->SetStandState(PLAYER_STATE_SLEEP);
|
||||
m_creature->SetStandState(UNIT_STAND_STATE_SLEEP);
|
||||
|
||||
ArcaneBuffetTimer = 8000;
|
||||
FrostBreathTimer = 15000;
|
||||
@@ -158,7 +158,7 @@ struct TRINITY_DLL_DECL boss_kalecgosAI : public ScriptedAI
|
||||
|
||||
void Aggro(Unit* who)
|
||||
{
|
||||
m_creature->SetStandState(PLAYER_STATE_NONE);
|
||||
m_creature->SetStandState(UNIT_STAND_STATE_STAND);
|
||||
DoScriptText(SAY_EVIL_AGGRO, m_creature);
|
||||
GameObject *Door = GameObject::GetGameObject(*m_creature, DoorGUID);
|
||||
if(Door) Door->SetLootState(GO_ACTIVATED);
|
||||
|
||||
@@ -228,12 +228,12 @@ struct TRINITY_DLL_DECL boss_alarAI : public ScriptedAI
|
||||
WaitEvent = WE_DUMMY;
|
||||
return;
|
||||
case WE_DIE:
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, PLAYER_STATE_DEAD);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, UNIT_STAND_STATE_DEAD);
|
||||
WaitTimer = 5000;
|
||||
WaitEvent = WE_REVIVE;
|
||||
return;
|
||||
case WE_REVIVE:
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, PLAYER_STATE_NONE);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, UNIT_STAND_STATE_STAND);
|
||||
m_creature->SetHealth(m_creature->GetMaxHealth());
|
||||
m_creature->SetSpeed(MOVE_RUN, DefaultMoveSpeedRate);
|
||||
m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
|
||||
@@ -238,7 +238,7 @@ struct TRINITY_DLL_DECL advisorbase_ai : public ScriptedAI
|
||||
m_creature->SetUInt64Value(UNIT_FIELD_TARGET,0);
|
||||
m_creature->GetMotionMaster()->Clear();
|
||||
m_creature->GetMotionMaster()->MoveIdle();
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1,PLAYER_STATE_DEAD);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1,UNIT_STAND_STATE_DEAD);
|
||||
|
||||
if (pInstance->GetData(DATA_KAELTHASEVENT) == 3)
|
||||
JustDied(pKiller);
|
||||
@@ -575,7 +575,7 @@ struct TRINITY_DLL_DECL boss_kaelthasAI : public ScriptedAI
|
||||
//Subphase 2 - Start
|
||||
case 2:
|
||||
Advisor = (Creature*)(Unit::GetUnit((*m_creature), AdvisorGuid[0]));
|
||||
if(Advisor && (Advisor->GetUInt32Value(UNIT_FIELD_BYTES_1) == PLAYER_STATE_DEAD))
|
||||
if(Advisor && (Advisor->GetUInt32Value(UNIT_FIELD_BYTES_1) == UNIT_STAND_STATE_DEAD))
|
||||
{
|
||||
DoScriptText(SAY_INTRO_SANGUINAR, m_creature);
|
||||
|
||||
@@ -609,7 +609,7 @@ struct TRINITY_DLL_DECL boss_kaelthasAI : public ScriptedAI
|
||||
//Subphase 3 - Start
|
||||
case 4:
|
||||
Advisor = (Creature*)(Unit::GetUnit((*m_creature), AdvisorGuid[1]));
|
||||
if(Advisor && (Advisor->GetUInt32Value(UNIT_FIELD_BYTES_1) == PLAYER_STATE_DEAD))
|
||||
if(Advisor && (Advisor->GetUInt32Value(UNIT_FIELD_BYTES_1) == UNIT_STAND_STATE_DEAD))
|
||||
{
|
||||
DoScriptText(SAY_INTRO_CAPERNIAN, m_creature);
|
||||
|
||||
@@ -643,7 +643,7 @@ struct TRINITY_DLL_DECL boss_kaelthasAI : public ScriptedAI
|
||||
//Subphase 4 - Start
|
||||
case 6:
|
||||
Advisor = (Creature*)(Unit::GetUnit((*m_creature), AdvisorGuid[2]));
|
||||
if(Advisor && (Advisor->GetUInt32Value(UNIT_FIELD_BYTES_1) == PLAYER_STATE_DEAD))
|
||||
if(Advisor && (Advisor->GetUInt32Value(UNIT_FIELD_BYTES_1) == UNIT_STAND_STATE_DEAD))
|
||||
{
|
||||
DoScriptText(SAY_INTRO_TELONICUS, m_creature);
|
||||
|
||||
@@ -679,7 +679,7 @@ struct TRINITY_DLL_DECL boss_kaelthasAI : public ScriptedAI
|
||||
//End of phase 1
|
||||
case 8:
|
||||
Advisor = (Creature*)(Unit::GetUnit((*m_creature), AdvisorGuid[3]));
|
||||
if(Advisor && (Advisor->GetUInt32Value(UNIT_FIELD_BYTES_1) == PLAYER_STATE_DEAD))
|
||||
if(Advisor && (Advisor->GetUInt32Value(UNIT_FIELD_BYTES_1) == UNIT_STAND_STATE_DEAD))
|
||||
{
|
||||
Phase = 2;
|
||||
pInstance->SetData(DATA_KAELTHASEVENT, 2);
|
||||
@@ -1467,7 +1467,7 @@ struct TRINITY_DLL_DECL mob_phoenix_tkAI : public ScriptedAI
|
||||
if(SummonEgg == 1){ //hack die animation
|
||||
m_creature->RemoveAllAuras();
|
||||
DoStartNoMovement(m_creature->getVictim());
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, PLAYER_STATE_DEAD);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, UNIT_STAND_STATE_DEAD);
|
||||
SummonEgg = 2;
|
||||
Cycle_Timer = 1000;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ struct TRINITY_DLL_DECL mob_unkor_the_ruthlessAI : public ScriptedAI
|
||||
CanDoQuest = false;
|
||||
UnkorUnfriendly_Timer = 0;
|
||||
Pulverize_Timer = 3000;
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, PLAYER_STATE_NONE);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, UNIT_STAND_STATE_STAND);
|
||||
m_creature->setFaction(FACTION_HOSTILE);
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ struct TRINITY_DLL_DECL mob_unkor_the_ruthlessAI : public ScriptedAI
|
||||
{
|
||||
DoScriptText(SAY_SUBMIT, m_creature);
|
||||
m_creature->setFaction(FACTION_FRIENDLY);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, PLAYER_STATE_SIT);
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, UNIT_STAND_STATE_SIT);
|
||||
m_creature->RemoveAllAuras();
|
||||
m_creature->DeleteThreatList();
|
||||
m_creature->CombatStop();
|
||||
|
||||
@@ -253,7 +253,7 @@ struct TRINITY_DLL_DECL boss_zuljinAI : public ScriptedAI
|
||||
Summons.DespawnEntry(CREATURE_COLUMN_OF_FIRE);
|
||||
|
||||
if(Unit *Temp = Unit::GetUnit(*m_creature, SpiritGUID[3]))
|
||||
Temp->SetUInt32Value(UNIT_FIELD_BYTES_1,PLAYER_STATE_DEAD);
|
||||
Temp->SetUInt32Value(UNIT_FIELD_BYTES_1,UNIT_STAND_STATE_DEAD);
|
||||
}
|
||||
|
||||
void AttackStart(Unit *who)
|
||||
@@ -349,7 +349,7 @@ struct TRINITY_DLL_DECL boss_zuljinAI : public ScriptedAI
|
||||
if(Phase > 0)
|
||||
{
|
||||
if(Unit *Temp = Unit::GetUnit(*m_creature, SpiritGUID[Phase - 1]))
|
||||
Temp->SetUInt32Value(UNIT_FIELD_BYTES_1,PLAYER_STATE_DEAD);
|
||||
Temp->SetUInt32Value(UNIT_FIELD_BYTES_1,UNIT_STAND_STATE_DEAD);
|
||||
}
|
||||
if(Unit *Temp = Unit::GetUnit(*m_creature, SpiritGUID[NextPhase - 1]))
|
||||
Temp->CastSpell(m_creature, SPELL_SIPHON_SOUL, false); // should m cast on temp
|
||||
|
||||
Reference in New Issue
Block a user