Advertisement
VTsilaLETImogila

Untitled

Oct 13th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. package laba1.moves;
  2. import ru.ifmo.se.pokemon.*;
  3.  
  4. public class Facede extends PhysicalMove{
  5.     public Facede(){
  6.         super(Type.NORMAL, 70, 100);
  7.     }
  8.     @Override
  9.     public void applyOppDamage(Pokemon p, double damage){
  10.         Status PokCon = p.getCondition();
  11.         if (PokCon.equals(Status.BURN) || PokCon.equals(Status.POISON) || PokCon.equals(Status.PARALYZE)) {
  12.             p.setMod(Stat.HP, -2*(int)Math.round(damage));
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement