Add 'Programming/ProgLab2/' from commit '20f33961b8c264e4cdcac7e6cdd7a7bfb744cc93'
git-subtree-dir: Programming/ProgLab2 git-subtree-mainline:148a148266git-subtree-split:20f33961b8
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package moves;
|
||||
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public final class Confide extends StatusMove {
|
||||
public Confide() {
|
||||
super(Type.NORMAL, 0, 1);
|
||||
}
|
||||
|
||||
@Override protected void applyOppEffects(Pokemon p) {
|
||||
Effect e = new Effect().stat(Stat.SPECIAL_ATTACK, -1);
|
||||
p.addEffect(e);
|
||||
}
|
||||
|
||||
@Override protected String describe() {
|
||||
return "отвлекает противника";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user