示例#1
0
 public bool useSkill(Mob mob)
 {
     if (cooldown <= Time.fixedTime && !mob.isAttacking && mob.useMana(properties["manaCost"])) {
         mob.attack(this, properties["attackSpeed"] / mob.stats.attackSpeed);
         cooldown = Time.fixedTime + properties["cooldown"] * (1 - (mob.stats.cooldownReduction / 100));
         return true;
     }
     return false;
 }