示例#1
0
        protected override bool Execute()
        {
            var knockback = new GameObjects.Knockback(Being.Facing, AbilityConstants.LavaBlastKnockbackLength, AbilityConstants.LavaBlastKnockback);
            var damage    = AbilityConstants.LavaBlastDamage * Being.SkillValue(SkillType.FireMastery, true);

            Globals.GameState.Missiles.Add(new LavaBlastMissile(Being as Zerd, new GameObjects.DamageInstance(knockback, damage, DamageTypes.Fire, Being, AbilityTypes.LavaBlast),
                                                                Being.Position));
            Being.AddBuff(BuffTypes.BlazingSpeed);
            return(base.Execute());
        }
示例#2
0
文件: Wand.cs 项目: zwand19/zerds
        public override void ReleaseCharge()
        {
            var knockback = new GameObjects.Knockback(Being.Facing, AbilityConstants.WandKnockbackLength,
                                                      AbilityConstants.WandKnockback);
            var damage = AbilityConstants.WandDamage * Being.SkillValue(SkillType.ImprovedWand, true);

            Globals.GameState.Missiles.Add(new WandMissile(Being,
                                                           new GameObjects.DamageInstance(knockback, damage, DamageTypes.Magic, Being, AbilityTypes.Wand),
                                                           Being.Position));
        }
示例#3
0
文件: Wand.cs 项目: zwand19/zerds
        protected override bool Execute()
        {
            var knockback = new GameObjects.Knockback(Being.Facing, AbilityConstants.WandKnockbackLength,
                                                      AbilityConstants.WandKnockback);
            var damage = AbilityConstants.WandDamage * Being.SkillValue(SkillType.ImprovedWand, true);

            Globals.GameState.Missiles.Add(new WandMissile(Being,
                                                           new GameObjects.DamageInstance(knockback, damage, DamageTypes.Magic, Being, AbilityTypes.Wand),
                                                           Being.Position));
            return(base.Execute());
        }