Add 'Programming/ProgLab2/' from commit '20f33961b8c264e4cdcac7e6cdd7a7bfb744cc93'

git-subtree-dir: Programming/ProgLab2
git-subtree-mainline: 148a148266
git-subtree-split: 20f33961b8
This commit is contained in:
LeterZP
2026-02-13 20:01:17 +03:00
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 "показывает силу";
}
}