More unit tests, fixes
This commit is contained in:
@@ -16,11 +16,18 @@ public class Bide : Script, IScriptOnSecondaryEffect
|
||||
}
|
||||
|
||||
bideEffect.Turns += 1;
|
||||
if (bideEffect.Turns < 2)
|
||||
if (bideEffect.Turns < 3)
|
||||
return;
|
||||
var lastPokemon = bideEffect.HitBy.LastOrDefault(x => x.BattleData?.IsOnBattlefield == true);
|
||||
lastPokemon?.Damage(bideEffect.DamageTaken, DamageSource.MoveDamage);
|
||||
if (bideEffect.DamageTaken == 0)
|
||||
{
|
||||
move.GetHitData(target, hit).Fail();
|
||||
}
|
||||
else
|
||||
{
|
||||
var lastPokemon = bideEffect.HitBy.LastOrDefault(x => x.BattleData?.IsOnBattlefield == true);
|
||||
lastPokemon?.Damage(bideEffect.DamageTaken * 2, DamageSource.MoveDamage);
|
||||
}
|
||||
|
||||
RemoveSelf();
|
||||
move.User.Volatile.Remove<BideEffect>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user