Misc fixes

This commit is contained in:
hondacrx
2022-03-02 10:04:24 -05:00
parent 150b09205b
commit 30a5bcdb4d
7 changed files with 26 additions and 28 deletions
+16 -11
View File
@@ -1115,6 +1115,14 @@ namespace Scripts.World.NpcSpecial
[Script]
class npc_garments_of_quests : EscortAI
{
ObjectGuid CasterGUID;
bool IsHealed;
bool CanRun;
uint RunAwayTimer;
uint quest;
public npc_garments_of_quests(Creature creature) : base(creature)
{
switch (me.GetEntry())
@@ -1139,25 +1147,22 @@ namespace Scripts.World.NpcSpecial
break;
}
Reset();
Initialize();
}
ObjectGuid CasterGUID;
void Initialize()
{
IsHealed = false;
CanRun = false;
bool IsHealed;
bool CanRun;
uint RunAwayTimer;
uint quest;
RunAwayTimer = 5000;
}
public override void Reset()
{
CasterGUID.Clear();
IsHealed = false;
CanRun = false;
RunAwayTimer = 5000;
Initialize();
me.SetStandState(UnitStandStateType.Kneel);
// expect database to have RegenHealth=0