ProgLab2/pass

This commit is contained in:
LeterZP
2026-02-13 19:59:26 +03:00
commit 20f33961b8
19 changed files with 320 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package moves;
import ru.ifmo.se.pokemon.*;
public final class Thunderbolt extends SpecialMove {
public Thunderbolt() {
super(Type.ELECTRIC, 90, 1);
}
@Override protected void applyOppEffects(Pokemon p) {
if (Math.random() < 0.1) {
Effect.paralyze(p);
}
}
@Override protected String describe() {
return "вызывает молнию";
}
}