public override bool StatusMoveCheck(BattlePokemon user, BattlePokemon target) { // can't use if HP is lower than half or Attack is already +6 if (!MoveHelper.CheckStatChange(user, PokemonStat.Attack, PokemonStatChange.Increase)) { return(false); } else { var hp = (int)Math.Floor(user.Pokemon.MaxHP / 2f); if (user.Pokemon.HP <= hp) { Battle.ActiveBattle.UI.ShowMessageAndWait("But it failed!"); return(false); } } return(true); }
public override bool StatusMoveCheck(BattlePokemon user, BattlePokemon target) { return(MoveHelper.CheckStatChange(target, PokemonStat.Attack, PokemonStatChange.Decrease)); }
public override bool StatusMoveCheck(BattlePokemon user, BattlePokemon target) { return(MoveHelper.CheckStatChange(user, PokemonStat.Speed, PokemonStatChange.SharpIncrease)); }