Move all battle state from IPokemon to an ephemeral IBattlePokemon wrapper
This commit is contained in:
@@ -7,7 +7,7 @@ public class Twineedle : Script, IScriptChangeNumberOfHits, IScriptOnSecondaryEf
|
||||
public void ChangeNumberOfHits(IMoveChoice choice, ref byte numberOfHits) => numberOfHits = 2;
|
||||
|
||||
/// <inheritdoc />
|
||||
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
public void OnSecondaryEffect(IExecutingMove move, IBattlePokemon target, byte hit)
|
||||
{
|
||||
if (move.Battle.Random.EffectChance(20, move, target, hit))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user