Move all battle state from IPokemon to an ephemeral IBattlePokemon wrapper
This commit is contained in:
@@ -3,15 +3,15 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Side;
|
||||
[Script(ScriptCategory.Side, "rage_powder")]
|
||||
public class RagePowderEffect : Script, IScriptChangeIncomingTargets, IScriptOnEndTurn
|
||||
{
|
||||
public IPokemon User { get; set; }
|
||||
public IBattlePokemon User { get; set; }
|
||||
|
||||
public RagePowderEffect(IPokemon user)
|
||||
public RagePowderEffect(IBattlePokemon user)
|
||||
{
|
||||
User = user;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void ChangeIncomingTargets(IMoveChoice moveChoice, ref IReadOnlyList<IPokemon?> targets)
|
||||
public void ChangeIncomingTargets(IMoveChoice moveChoice, ref IReadOnlyList<IBattlePokemon?> targets)
|
||||
{
|
||||
// Ignore multi-hit moves
|
||||
if (targets.Count != 1)
|
||||
|
||||
Reference in New Issue
Block a user