Move all battle state from IPokemon to an ephemeral IBattlePokemon wrapper
This commit is contained in:
@@ -6,12 +6,12 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
public class IceBurn : BaseChargeMove<RequireChargeEffect>
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override RequireChargeEffect CreateVolatile(IPokemon user) => new(user, "ice_burn");
|
||||
public override RequireChargeEffect CreateVolatile(IBattlePokemon user) => new(user, "ice_burn");
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IBattlePokemon target, byte hit)
|
||||
{
|
||||
var battleData = move.User.BattleData;
|
||||
var battleData = move.User;
|
||||
if (battleData == null)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user