Move all battle state from IPokemon to an ephemeral IBattlePokemon wrapper
This commit is contained in:
@@ -4,9 +4,9 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
public class Synchronoise : Script, IScriptChangeTargets
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public void ChangeTargets(IMoveChoice moveChoice, ref IReadOnlyList<IPokemon?> targets)
|
||||
public void ChangeTargets(IMoveChoice moveChoice, ref IReadOnlyList<IBattlePokemon?> targets)
|
||||
{
|
||||
var battleData = moveChoice.User.BattleData;
|
||||
var battleData = moveChoice.User;
|
||||
if (battleData == null)
|
||||
throw new InvalidOperationException("Battle data is null.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user