Example #1
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper player       = skill.GetPlayer();
            GPlayerWrapper victim       = skill.GetVictim();
            int            player_var1  = player.GetVar1();
            int            player_var6  = player.GetVar6();
            int            player_var7  = player.GetVar7();
            int            player_var8  = player.GetVar8();
            int            player_var9  = player.GetVar9();
            int            player_var10 = player.GetVar10();
            int            skill_level  = skill.GetLevel();

            victim.SetProbability((((player_var10 + (player_var9 + (player_var8 + (player_var7 + player_var6)))) / 5)));
            victim.SetTime(((1000 * skill_level + 6000)));
            victim.SetSilent(true);
            return(true);
        }