Пример #1
0
        public void Perform()
        {
            if (!_v.IsCasterNotTarget() || !_v.Target.CanBeAttacked() || _v.Target.TryKillFrozen())
            {
                return;
            }

            _v.PhysicalAccuracy();
            if (!_v.Caster.HasSupportAbility(SupportAbility1.Accuracy) && !_v.TryPhysicalHit())
            {
                return;
            }

            _v.WeaponPhisicalParams(CalcAttackBonus.Simple);
            _v.BonusSupportAbilitiesAttack();
            _v.Caster.PhysicalPenaltyAndBonusAttack();
            _v.Target.GambleDefence();
            _v.Target.PhysicalPenaltyAndBonusAttack();
            _v.BonusBackstabAndPenaltyLongDistance();
            _v.TryCriticalHit();
            _v.PenaltyReverseAttack();
            _v.PrepareHpDraining();

            Int16 damage = (Int16)Math.Min(9999, _v.Context.EnsurePowerDifference * _v.Context.EnsureAttack);

            _v.Target.HpDamage = damage;
            _v.Caster.HpDamage = damage;

            _v.ConsumeMpAttack();
        }
        public void Perform()
        {
            if (_v.Target.TryKillFrozen())
            {
                return;
            }

            _v.PhysicalAccuracy();
            if (!_v.TryPhysicalHit())
            {
                return;
            }

            _v.NormalPhisicalParams();
            _v.Caster.PhysicalPenaltyAndBonusAttack();
            _v.Target.GambleDefence();
            _v.Target.PhysicalPenaltyAndBonusAttack();
            _v.BonusBackstabAndPenaltyLongDistance();
            _v.CasterCommand.BonusElement();
            if (!_v.CanAttackElementalCommand())
            {
                return;
            }

            _v.TryCriticalHit();
            _v.CalcPhysicalHpDamage();
            _v.Target.RaiseTrouble();
            _v.TargetCommand.TryAlterMagicStatuses();
        }
Пример #3
0
 public void Perform()
 {
     _v.NormalPhisicalParams();
     _v.Caster.PhysicalPenaltyAndBonusAttack();
     _v.Target.GambleDefence();
     _v.Target.PhysicalPenaltyAndBonusAttack();
     _v.BonusBackstabAndPenaltyLongDistance();
     _v.TargetCommand.CalcHpDamage();
     RemoveItem();
 }
        public void Perform()
        {
            _v.NormalPhisicalParams();
            _v.Caster.PhysicalPenaltyAndBonusAttack();
            _v.Target.GambleDefence();
            _v.Target.PhysicalPenaltyAndBonusAttack();
            _v.BonusBackstabAndPenaltyLongDistance();
            _v.CasterCommand.BonusElement();
            if (!_v.CanAttackElementalCommand())
            {
                return;
            }

            _v.TargetCommand.CalcHpDamage();
            if (_v.Target.Row != 0)
            {
                _v.Target.ChangeRow();
            }

            _v.TargetCommand.TryAlterMagicStatuses();
        }
Пример #5
0
        public virtual void Perform()
        {
            if (_v.Target.TryKillFrozen())
            {
                return;
            }

            _v.PhysicalAccuracy();
            if (!_v.Caster.HasSupportAbility(SupportAbility1.Accuracy) && !_v.TryPhysicalHit())
            {
                return;
            }

            _v.WeaponPhisicalParams(_bonus);
            _v.BonusSupportAbilitiesAttack();
            _v.Caster.PhysicalPenaltyAndBonusAttack();
            _v.Target.GambleDefence();
            _v.Target.PhysicalPenaltyAndBonusAttack();
            if (_v.Caster.IsUnderStatus(BattleStatus.Trans) && _v.Caster.PresetId == CharacterPresetId.Steiner)
            {
                _v.Context.Attack *= 2;
            }

            _v.BonusBackstabAndPenaltyLongDistance();
            _v.Caster.BonusWeaponElement();
            if (_v.CanAttackWeaponElementalCommand())
            {
                _v.TryCriticalHit();
                _v.PenaltyReverseAttack();
                _v.CalcPhysicalHpDamage();
                _v.Target.RaiseTrouble();
                _v.ConsumeMpAttack();

                TryAddWeaponStatus();
            }
        }