VTsilaLETImogila

Untitled

Oct 13th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. package laba1.moves;
  2. import ru.ifmo.se.pokemon.*;
  3.  
  4.  
  5. public class Rest extends StatusMove {
  6.     public Rest() {
  7.         super(Type.PSYCHIC, 0, 0);
  8.     }
  9.  
  10.     @Override
  11.     public void applySelfEffects(Pokemon p) {
  12.         p.addEffect(new Effect().condition(Status.SLEEP).turns(2));
  13.         p.setMod(Stat.HP,  (int)p.getStat(Stat.HP));
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment