public override void PerformCheck() { if (!World.IsCreatureLogedIn(CurrentCreature) || CurrentCreature.FollowCheck != this) { return; } //TODO: Finish coding Creature cAtking = CurrentCreature.GetCreatureAttacking(); if (cAtking != null) { if (CurrentCreature.CurrentFightStance == FightStance.CHASE) { CurrentCreature.CurrentWalkSettings.Destination = cAtking.CurrentPosition; CurrentCreature.CurrentWalkSettings.IntendingToReachDes = false; } else { CurrentCreature.CurrentWalkSettings.Destination = null; } } World.HandleMoveCheck(CurrentCreature); World.AddEventInCS(10, PerformCheck); }
public override void PerformCheck() { if (!World.IsCreatureLogedIn(CurrentCreature) || CurrentCreature.AttackCheck != this) { return; } World.HandleAttackCheck(CurrentCreature, CurrentCreature.GetCreatureAttacking()); World.AddEventInCS(TimeInCS, PerformCheck); }