Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package laba1.moves;
- import ru.ifmo.se.pokemon.*;
- public class Rest extends StatusMove {
- public Rest() {
- super(Type.PSYCHIC, 0, 0);
- }
- @Override
- public void applySelfEffects(Pokemon p) {
- p.addEffect(new Effect().condition(Status.SLEEP).turns(2));
- p.setMod(Stat.HP, (int)p.getStat(Stat.HP));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment