public override Effect ApplyMove(PokemonScript enemy, PokemonScript ours) { enemy.hp -= (int)(0.8 * ours.getAttackStat()); //damage them enemy.applyStatus(PokemonScript.Status.Grappled); //grapple them enemyFromLastMove = enemy; //keep track of this for printing... return(null); }
public override Effect ApplyMove(PokemonScript enemy, PokemonScript ours) { if (passesProbability(probOfSucceeding)) { enemy.applyStatus(PokemonScript.Status.Disabled); enemy.hp -= (int)(0.2 * ours.getAttackStat()); } probOfSucceeding *= 3.0f / 4; //decrease the probability return(new RemoveStatusAfterTurnEffect(enemy, 1, PokemonScript.Status.Disabled)); }