//use a skill public string useSkill(PongSkill skill) { if (!isAction() && !skill.isOnCooldown()) { //normal skill.goOnCooldown(); switch (skill.getName()) { //sora case "lightning strike": useLightningStrike(); break; case "breeze": useBreeze(); break; case "whiplash": useWhiplash(); break; //vida case "firewall": useFirewall(); break; case "fireblast": useFireblast(); break; case "forward smash": paddleScript.forwardSmash(); break; case "ignite": useIgnite(); break; } currentSkill = skill; //rising wind check if (getSkillPassive().getName() == "rising wind") { getSkillPassive().risindWindDecrement(); } return(skill.getName()); } else { return("none"); } }