Exemple #1
0
        public ChannelingInstance(Battle battle, IEnumerable <Mod> mods, Skill skill, Tile place, Func <Tile> targetSelector)
        {
            Stats           = new StatSet();
            SkillUsageStats = new Dictionary <object, StatSet>();
            Battle          = battle;
            Battle.Add(this);

            Skill          = skill;
            Place          = place;
            TargetSelector = targetSelector;

            foreach (var m in mods)
            {
                m.Affect(Stats);
            }

            TurnFinished += (s, e) => Battle.Remove(this);
            TurnStarted  += OnTurnStarted;
        }
Exemple #2
0
 public override void UnAffect()
 {
     base.UnAffect();
     Awaited = 0;
     _Battle.Remove(this);
 }