Beispiel #1
0
        public override TEffectResult onStart(world.L2Character caster, world.L2Character target)
        {
            double[] val = target.CharacterStat.Apply(this);

            TEffectResult ter = new TEffectResult();

            ter.TotalUI = 1;
            return(ter);
        }
Beispiel #2
0
        public override TEffectResult onEnd(world.L2Character caster, world.L2Character target)
        {
            double[] val = ((world.L2Character)target).CharacterStat.Stop(this);

            TEffectResult ter = new TEffectResult();

            ter.TotalUI = 1;
            return(ter);
        }
Beispiel #3
0
        public override TEffectResult onStart(world.L2Character caster, world.L2Character target)
        {
            if (!(target is L2Player))
            {
                return(nothing);
            }

            ((L2Player)target).specEffects.Add(ef);

            TEffectResult ter = new TEffectResult();

            ter.addSU(StatusUpdate.EVASION, ((world.L2Character)target).CharacterStat.getStat(TEffectType.b_evasion));
            return(nothing);
        }
Beispiel #4
0
        public TEffectResult Apply(List <TEffect> effects, L2Character caster)
        {
            TEffectResult result = new TEffectResult();

            foreach (TEffect effect in effects)
            {
                TEffectResult ter = effect.onStart(caster, owner);
                if (result.TotalUI == 0)
                {
                    result.TotalUI = ter.TotalUI;
                }

                if (ter.sus != null)
                {
                    result.addAll(ter.sus);
                }
            }

            return(result);
        }