Exemplo n.º 1
0
        private void ChakraConcentrationBuffTrigger(TriggerBuff buff, BuffTriggerType trigger, object token)
        {
            Damage damage = token as Damage;

            if (damage != null && damage.MarkTrigger is Trap)
            {
                Trap trap = damage.MarkTrigger as Trap;
                SpellEffectHandler[] handlers = base.Handlers;
                for (int i = 0; i < handlers.Length; i++)
                {
                    SpellEffectHandler spellEffectHandler = handlers[i];
                    spellEffectHandler.SetAffectedActors(
                        from x in this.m_affectedActors
                        where trap.ContainsCell(x.Cell)
                        select x);
                    spellEffectHandler.Apply();
                }
            }
        }