Ejemplo n.º 1
0
 // Name should be the FightingObjectView.GetSpellCasted().d6
 public DangerousSpell(SpellTarget target, SpellCategory category, Evade evadeMethod, string spellName)
 {
     this.name        = spellName;
     this.target      = target;
     this.category    = category;
     this.evadeMethod = evadeMethod;
 }
Ejemplo n.º 2
0
        public void AddSpellToMob(string mobName, SpellCategory category, SpellTarget target, Evade evade, string spellName = null)
        {
            DangerousSpell spell = new DangerousSpell(target, category, evade, spellName);
            var            mob   = GetMobByName(mobName);

            if (mob != null)
            {
                AddSpellToMob(mob, spell);
            }
        }
Ejemplo n.º 3
0
            public DangerousSpell GetSpell(SpellCategory category, SpellTarget target)
            {
                foreach (var spell in dangerousSpells)
                {
                    if (spell.IsNamed())
                    {
                        continue;
                    }
                    if (spell.GetCategory().Equals(category) && spell.GetTarget().Equals(target))
                    {
                        return(spell);
                    }
                }

                return(null);
            }
Ejemplo n.º 4
0
 public static IEnumerable <Spell> Target(this IEnumerable <Spell> spells, gy.SpellTarget target)
 {
     return(spells.Where <Spell>(spell => spell.Target == target));
 }