Пример #1
0
    public override void Attack(BattleCharacter target, AttackBase move)
    {
        selectedAttack = move;
        if (selectedAttack.attkRng != AttackBase.attackRange.all)
        {
            targetChar = target;
        }
        else
        {
            targetChar = null;
        }
        battlehandler.BSM.battlelog("- " + this.name + " prefromed " + selectedAttack.name);

        if (move.name == "Baseball Smash")
        {
            redAnimation = animationRedler.bBallSmash;
            animations   = animationstate.attack;
        }

        if (move.name == "Double Strike")
        {
            redAnimation = animationRedler.doubleStrike;
            animations   = animationstate.attack;
        }

        if (move.name == "Flame Strike")
        {
            redAnimation = animationRedler.fireStrike;
            animations   = animationstate.attack;
        }

        if (move.name == "Smite")
        {
            redAnimation = animationRedler.smite;
            animations   = animationstate.attack;
        }

        if (move.name == "Ominous Strike")
        {
            redAnimation = animationRedler.holyBall;
            animations   = animationstate.attack;
        }

        if (move.name == "Trio Attack")
        {
            redAnimation = animationRedler.trioAttk;
            animations   = animationstate.attack;
        }

        if (move.name == "Heal")
        {
            redAnimation = animationRedler.Heal;
            animations   = animationstate.attack;
        }

        if (move.name == "Mind Sword")
        {
            redAnimation = animationRedler.mindSword;
            animations   = animationstate.attack;
        }

        if (move.name == "Red Frenzy")
        {
            redAnimation = animationRedler.red_frenzy;
            animations   = animationstate.attack;
        }

        if (move.name == "Incenerate")
        {
            redAnimation = animationRedler.incenerate;
            animations   = animationstate.attack;
        }

        if (move.name == "Optimize")
        {
            redAnimation = animationRedler.optimize;
            animations   = animationstate.attack;
        }
        moveSelector();
    }
    public override void attackSelector()
    {
        if (selectedAttack.name == "Baseball Smash")
        {
            redAnimation = animationRedler.bBallSmash;
            animations   = animationstate.attack;
        }

        if (selectedAttack.name == "Double Strike")
        {
            redAnimation = animationRedler.doubleStrike;
            animations   = animationstate.attack;
        }

        if (selectedAttack.name == "Flame Strike")
        {
            redAnimation = animationRedler.fireStrike;
            animations   = animationstate.attack;
        }

        if (selectedAttack.name == "Smite")
        {
            redAnimation = animationRedler.smite;
            animations   = animationstate.attack;
        }

        if (selectedAttack.name == "Ominous Strike")
        {
            redAnimation = animationRedler.holyBall;
            animations   = animationstate.attack;
        }

        if (selectedAttack.name == "Trio Attack")
        {
            redAnimation = animationRedler.trioAttk;
            animations   = animationstate.attack;
        }

        if (selectedAttack.name == "Heal")
        {
            redAnimation = animationRedler.Heal;
            animations   = animationstate.attack;
        }

        if (selectedAttack.name == "Mind Sword")
        {
            redAnimation = animationRedler.mindSword;
            animations   = animationstate.attack;
        }

        if (selectedAttack.name == "Red Frenzy")
        {
            redAnimation = animationRedler.red_frenzy;
            animations   = animationstate.attack;
        }

        if (selectedAttack.name == "Incenerate")
        {
            redAnimation = animationRedler.incenerate;
            animations   = animationstate.attack;
        }

        if (selectedAttack.name == "Optimize")
        {
            redAnimation = animationRedler.optimize;
            animations   = animationstate.attack;
        }

        moveSelector();
    }