public static bool MeetsCondition(
            KnowsSpellCondition condition,
            Player player,
            Event eventInstance,
            QuestBase questBase
            )
        {
            if (player.KnowsSpell(condition.SpellId))
            {
                return(true);
            }

            return(false);
        }
Example #2
0
 private void SetupFormValues(KnowsSpellCondition condition)
 {
     cmbSpell.SelectedIndex = SpellBase.ListIndex(condition.SpellId);
 }
Example #3
0
 private void SaveFormValues(KnowsSpellCondition condition)
 {
     condition.SpellId = SpellBase.IdFromList(cmbSpell.SelectedIndex);
 }