Esempio n. 1
0
    protected sealed override void specialMove(_CombatParticipant other) {
        if (currentMp >= 10) {
            useMP(10);

            int damageAmount = Random.Range(minAttack * 2, maxAttack * 3);
            other.damage(damageAmount);

            animator.SetTrigger("sword");
            //combatController.waitForAnimationFinished(animator);
            combatController.waitForParticipant(this, 4);
        }
        else {
            Debug.Log("Aria does not have enough MP. Skipping turn...");
        }
    }
Esempio n. 2
0
    protected virtual void basicAttack(_CombatParticipant other) {
        int damageAmount = Random.Range(minAttack, maxAttack);

        other.damage(damageAmount);
        Debug.Log(gameObject.name + " has done " + damageAmount + " damage to " + other.gameObject.name); 

        if (this is _HeroCombat) {
            animator.SetTrigger("basic");
        }
        else if (this is _EnemyCombat) {
            animator.SetTrigger("Attack");
        }


        //combatController.waitForAnimationFinished(animator);
        combatController.waitForParticipant(this, 4);
    }