public void statusEffect(Ailment ailment, float ailmentChance) { bool ail = heroClass.getChance(ailmentChance); if (ail) { ailed = true; startAil = Time.time; setAilment(ailment); } }