ProgLab2/pass
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package moves;
|
||||
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public final class Thunder extends SpecialMove {
|
||||
public Thunder() {
|
||||
super(Type.ELECTRIC, 110, 0.7);
|
||||
}
|
||||
|
||||
@Override protected void applyOppEffects(Pokemon p) {
|
||||
if (Math.random() < 0.3) {
|
||||
Effect.paralyze(p);
|
||||
}
|
||||
}
|
||||
|
||||
@Override protected String describe() {
|
||||
return "вызывает Грозу";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user