void OnDisengagedEvent(DisengagedEvent e) { //Trace.Script(e.Agent + " has disengaged from me!", this); OnDisengaged(e.agent); // This agent is no longer in combat if (_engagements.Count == 0) { Scene.Dispatch <ExitCombatEvent>(new ExitCombatEvent()); this.OnCombatExit(); } _engagements.Remove(e.agent); }
void OnDisengagedEvent(DisengagedEvent e) { //Trace.Script(e.Agent + " has disengaged from me!", this); OnDisengaged(e.agent); // This agent is no longer in combat if (currentEngagements.Count == 0) { this.OnCombatExit(); } currentEngagements.Remove(e.agent); }