More refactoring of code.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user