More refactoring of code.

This commit is contained in:
hondacrx
2019-09-23 21:41:13 -04:00
parent 2418715800
commit 570aebce26
176 changed files with 2261 additions and 2265 deletions
+4 -4
View File
@@ -115,7 +115,7 @@ namespace Scripts.Outlands
}
[Script]
class npc_ancestral_wolf : npc_escortAI
class npc_ancestral_wolf : NpcEscortAI
{
public npc_ancestral_wolf(Creature creature) : base(creature)
{
@@ -167,7 +167,7 @@ namespace Scripts.Outlands
}
[Script]
class npc_wounded_blood_elf : npc_escortAI
class npc_wounded_blood_elf : NpcEscortAI
{
public npc_wounded_blood_elf(Creature creature) : base(creature) { }
@@ -175,7 +175,7 @@ namespace Scripts.Outlands
public override void EnterCombat(Unit who)
{
if (HasEscortState(eEscortState.Escorting))
if (HasEscortState(EscortState.Escorting))
Talk(SAY_ELF_AGGRO);
}
@@ -184,7 +184,7 @@ namespace Scripts.Outlands
summoned.GetAI().AttackStart(me);
}
public override void sQuestAccept(Player player, Quest quest)
public override void QuestAccept(Player player, Quest quest)
{
if (quest.Id == QUEST_ROAD_TO_FALCON_WATCH)
{
+2 -2
View File
@@ -267,7 +267,7 @@ namespace Scripts.Outlands
{
public npc_kayra_longmane() : base("npc_kayra_longmane") { }
class npc_kayra_longmaneAI : npc_escortAI
class npc_kayra_longmaneAI : NpcEscortAI
{
public npc_kayra_longmaneAI(Creature creature) : base(creature) { }
@@ -312,7 +312,7 @@ namespace Scripts.Outlands
{
creature.GetAI().Talk(SAY_START, player);
npc_escortAI pEscortAI = (npc_kayra_longmaneAI)creature.GetAI();
NpcEscortAI pEscortAI = (npc_kayra_longmaneAI)creature.GetAI();
if (pEscortAI != null)
pEscortAI.Start(false, false, player.GetGUID());
}