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
+22
View File
@@ -0,0 +1,22 @@
package moves;
import ru.ifmo.se.pokemon.*;
public final class Facade extends PhysicalMove {
public Facade() {
super(Type.NORMAL, 70, 1);
}
@Override protected void applySelfEffects(Pokemon p) {
if (p.getCondition() == Status.PARALYZE ||
p.getCondition() == Status.BURN ||
p.getCondition() == Status.POISON) {
Effect e = new Effect().stat(Stat.ATTACK, 1);
p.addEffect(e);
}
}
@Override protected String describe() {
return "показывает силу";
}
}