Advertisement
hazer_hazer

Untitled

Sep 30th, 2019
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. import ru.ifmo.se.pokemon.*;
  2.  
  3. public class WakeUpSlap extends PhysicalMove{
  4.     public WakeUpSlap(){
  5.         super(Type.FIGHTING, 70.0, 100.0);
  6.     }
  7.     protected String describe(){
  8.         return " ПОРA ВСТAВAТЬ ПОЩЕЧИHA(еcли верить гугл переводчику)";
  9.     }
  10.     protected boolean checkAccuracy(Pokemon att, Pokemon def){
  11.         Status status = def.getCondition();
  12.         if(status == Status.SLEEP){
  13.             Effect eff = new Effect().stat(Stat.ATTACK, 2);
  14.             att.addEffect(eff);
  15.             Effect sleepless = new Effect().condition(Status.NORMAL);
  16.             att.addEffect(sleepless);
  17.             def.addEffect(sleepless);
  18.         }
  19.         return true;
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement