Fix some typos in Headless Horseman script

--HG--
branch : trunk
This commit is contained in:
Chaz Brown
2009-06-13 16:47:58 -04:00
parent fb76690132
commit 6936190811

View File

@@ -33,7 +33,7 @@ EndScriptData */
#define SAY_PLAYER_DEATH -1189006
#define SAY_DEATH -1189007
uint32 RandomLaught[] = {11965, 11975, 11976};
uint32 RandomLaugh[] = {11965, 11975, 11976};
// Entryes
#define HH_MOUNTED 23682
@@ -123,7 +123,7 @@ struct Summon
static Summon Text[]=
{
{"Horseman rise..."},
{"Your time is night..."},
{"Your time is nigh..."},
{"You felt death once..."},
{"Now, know demise!"}
};
@@ -293,12 +293,12 @@ struct TRINITY_DLL_DECL mob_headAI : public ScriptedAI
if (laugh < diff)
{
laugh = 15000 + (rand()%16)*1000;
DoPlaySoundToSet(m_creature, RandomLaught[rand()%3]);
DoPlaySoundToSet(m_creature, RandomLaugh[rand()%3]);
//DoCast(m_creature,SPELL_HEAD_SPEAKS,true); //this spell remove buff "head"
Creature *speaker = DoSpawnCreature(HELPER,0,0,0,0,TEMPSUMMON_TIMED_DESPAWN,1000);
if(speaker)
speaker->CastSpell(speaker,SPELL_HEAD_SPEAKS,false);
DoTextEmote("laughts",NULL);
DoTextEmote("laughs",NULL);
} else laugh -= diff;
} else {
@@ -577,7 +577,7 @@ struct TRINITY_DLL_DECL boss_headless_horsemanAI : public ScriptedAI
DoCast(m_creature,SPELL_BODY_REGEN,true);
m_creature->CastSpell(Head, SPELL_FLYING_HEAD,true);
DoCast(m_creature,SPELL_CONFUSE,false); //test
done_by->ProcDamageAndSpell(m_creature,PROC_FLAG_KILL,PROC_FLAG_KILLED,PROC_EX_NONE,0);
done_by->ProcDamageAndSpell(m_creature,PROC_FLAG_KILL,PROC_FLAG_KILLED,PROC_EX_NONE,0);
whirlwind = 4000 + (rand()%5)*1000;
regen = 0;
}
@@ -654,8 +654,8 @@ struct TRINITY_DLL_DECL boss_headless_horsemanAI : public ScriptedAI
if (laugh < diff) {
laugh = 11000 + rand()%12 * 1000;
DoTextEmote("laughts",NULL);
DoPlaySoundToSet(m_creature, RandomLaught[rand()%3]);
DoTextEmote("laughs",NULL);
DoPlaySoundToSet(m_creature, RandomLaugh[rand()%3]);
} else laugh -= diff;
if (UpdateVictim())
@@ -747,7 +747,7 @@ struct TRINITY_DLL_DECL mob_pulsing_pumpkinAI : public ScriptedAI
sprouted = false;
DoCast(m_creature,SPELL_PUMPKIN_AURA,true);
DoCast(m_creature,SPELL_SPROUTING);
m_creature->SetFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_STUNNED);
m_creature->SetFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_STUNNED);
}
void EnterCombat(Unit *who){}
@@ -758,7 +758,7 @@ struct TRINITY_DLL_DECL mob_pulsing_pumpkinAI : public ScriptedAI
{
sprouted = true;
m_creature->RemoveAllAuras();
m_creature->RemoveFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_STUNNED);
m_creature->RemoveFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_STUNNED);
DoCast(m_creature,SPELL_SPROUT_BODY,true);
m_creature->UpdateEntry(PUMPKIN_FIEND);
DoStartMovement(m_creature->getVictim());