Example #1
0
    private bool CheckIfSkillCouldBeActivated(ItemSkill SourceItemSkill, Character Owner)
    {
        // Can Activation Cost be paid?
        if (Owner.GetEnergyCurrent() < Cost)
        {
            // Debug.Log(Owner + " can not activate Skill " + this + "! Reason: Not enough Energy!");
            return(false);
        }

        if (SourceItemSkill.IsCurrentlyOnCooldown())
        {
            // Debug.Log(Owner + " can not activate Skill " + this + "! Reason: Skill is on Cooldown!");
            return(false);
        }


        return(true);
    }