Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import ru.ifmo.se.pokemon.*;
- public class Facade extends PhysicalMove{
- public Facade(){
- super(Type.NORMAL, 70.0, 100.0);
- }
- protected String describe(){
- return " обрушил фаcад зданиR";
- }
- protected void applySelfEffect(Pokemon p){
- Effect eff = new Effect().stat(Stat.ATTACK, 2);
- Status status = p.getCondition();
- if(status == Status.PARALYZE || status == Status.POISON || status == Status.BURN){
- p.restore();
- p.addEffect(eff);
- }
- }
- protected boolean checkAccuracy(Pokemon att, Pokemon def){
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement