}
public String getDescription() {
return " was seeded!";
}
public boolean tick(Pokemon p) {
final Pokemon opponent = p.getOpponent();
if (p.isFainted() || opponent.isFainted()) return false;
int damage = p.getStat(Pokemon.S_HP) / 8;
if (damage == 0) {
damage = 1;
}
if (!p.hasAbility("Magic Guard")) {
p.getField().showMessage(p.getName() + "'s health was sapped by leech seed!");
p.changeHealth(-damage, true);
if (p.hasAbility("Liquid Ooze")) {
p.getField().showMessage(opponent.getName() + " sucked up liquid ooze!");
opponent.changeHealth(-damage);
} else {
p.getField().showMessage(opponent.getName() + " regained health!");
opponent.changeHealth(damage);
}
}
return false;
}