/// <summary> /// Checks the added requirement whenever a trigger associated with this questpart fires.(returns true) /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <param name="args"></param> /// <returns></returns> public override bool Check(DOLEvent e, object sender, EventArgs args) { bool result = true; GamePlayer player = BehaviourUtils.GuessGamePlayerFromNotify(e, sender, args); if (Comparator == eComparator.Not) { result = QuestMgr.CanGiveQuest(N, player, V) <= 0; } else { result = QuestMgr.CanGiveQuest(N, player, V) > 0; } return(result); }