コード例 #1
0
        public static void RECRUIT_LURINGSHOT(SkillBaseEventArgs bargument)
        {
            int Lvldiff;

            SkillUsageEventArgs.SkillMatrix matrix;
            Actor asource = bargument.Sender as Actor;
            Actor atarget = bargument.Target as Actor;

            if (asource != null && atarget != null && bargument.Context == Saga.Enumarations.SkillContext.SkillUse)
            {
                SkillUsageEventArgs arguments = (SkillUsageEventArgs)bargument;
                matrix        = arguments.GetDefaultSkillMatrix(asource, atarget);
                Lvldiff       = arguments.GetCappedLevelDifference(matrix);
                matrix[4, 3] += (Lvldiff * 120);

                if (arguments.IsMissed(matrix) || arguments.IsBlocked(matrix))
                {
                    arguments.UpdateCancelAddition(1004901, 5000, 0, atarget);
                    return;
                }
                else
                {
                    arguments.CanCheckEquipmentDurabillity = true;
                    arguments.CanCheckWeaponDurabillity    = true;
                    arguments.Damage = 0;
                    arguments.Result = SkillBaseEventArgs.ResultType.NoDamage;
                    arguments.IsCritical(matrix);
                }
            }
            else
            {
                bargument.Failed = true;
            }
        }