Advertisement
hazer_hazer

Untitled

Sep 30th, 2019
512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. import ru.ifmo.se.pokemon.*;
  2.  
  3. public class Facade extends PhysicalMove{
  4.     public Facade(){
  5.         super(Type.NORMAL, 70.0, 100.0);
  6.     }
  7.     protected String describe(){
  8.         return " обрушил фаcад зданиR";
  9.     }
  10.     protected void applySelfEffect(Pokemon p){
  11.         Effect eff = new Effect().stat(Stat.ATTACK, 2);
  12.         Status status = p.getCondition();
  13.         if(status == Status.PARALYZE || status == Status.POISON || status == Status.BURN){
  14.             p.restore();
  15.             p.addEffect(eff);
  16.         }
  17.     }
  18.     protected boolean checkAccuracy(Pokemon att, Pokemon def){
  19.         return true;
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement