public static void poison(Unit onDef, float damage) { if (Random.Range(0.0f, 100.0f) <= 40.0f) { BattleEventController.setAffect(onDef, (int)affect.poison, 2, 0.2f * damage); } }
public static void dazzle(Unit onDef) { if (Random.Range(0.0f, 100.0f) <= 10.0f) { BattleEventController.setAffect(onDef, (int)affect.missing, 2, 65.0f); } }