예제 #1
0
    public override void PlayedFunction()
    {
        Sc_BattleManager battleManager = GameObject.FindObjectOfType <Sc_BattleManager>();

        battleManager.DamageCalc(target: 1, damage: monsterDamage);
        battleManager.DamageCalc(target: 0, damage: selfDamage);
    }
예제 #2
0
    public override void PlayedFunction()
    {
        Sc_BattleManager battleManager = GameObject.FindObjectOfType <Sc_BattleManager>();
        int random = Random.Range(0, 100);

        if (chanceHitSelf <= random)
        {
            battleManager.DamageCalc(target: 1, damage: damage, poison: poison);
        }
        else
        {
            battleManager.DamageCalc(target: 0, damage: damage, poison: poison);
        }
    }
예제 #3
0
    public override void PlayedFunction()
    {
        Sc_BattleManager battleManager = GameObject.FindObjectOfType <Sc_BattleManager>();

        battleManager.currentRage += rage;
        if (selfDamage != 0)
        {
            battleManager.DamageCalc(target: 0, damage: selfDamage);
        }
    }