public override bool Apply(Fighter[] targets)
        {
            if (targets.Count() > 0)
            {
                short[] cells = new short[targets.Length];

                for (int i = 0; i < targets.Length; i++)
                {
                    targets[i].Stats.CurrentLifePoints = 0;
                    cells[i] = targets[i].CellId;
                }


                Source.Fight.CheckDeads();


                foreach (var cell in cells)
                {
                    ControlableMonsterFighter fighter = CreateSummon(Source as CharacterFighter);
                    Fight.AddSummon(fighter, (CharacterFighter)Source);
                    return(true);
                }
            }
            return(true);
        }
Beispiel #2
0
        public override bool Apply(Fighter[] targets)
        {
            MonsterRecord template = MonsterRecord.GetMonster(Effect.DiceMin);

            if (template != null && Source is CharacterFighter)
            {
                ExplosiveControlableMonster fighter = new ExplosiveControlableMonster(Source.Team, template, SpellLevel.Grade,
                                                                                      Source as CharacterFighter, CastPoint.CellId);
                Fight.AddSummon(fighter, (CharacterFighter)Source);
            }
            return(true);
        }
Beispiel #3
0
 public override bool Apply(Fighter[] targets)
 {
     if (Source is CharacterFighter)
     {
         DoubleFighter fighter = new DoubleFighter((CharacterFighter)Source, Source.Team, CastPoint.CellId);
         Fight.AddSummon(fighter, (CharacterFighter)Source);
         return(true);
     }
     else
     {
         Fight.Reply("An non character fighter try to summon a double...");
         return(false);
     }
 }