Fixes MoveTurnChoice creating potential invalid types.

master
Deukhoofd 7 months ago
parent 5187cb994d
commit 012a47c78a
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
  1. 2
      PkmnLibSharp/Battling/ChoiceTurn/MoveTurnChoice.cs

@ -20,7 +20,7 @@ namespace PkmnLibSharp.Battling.ChoiceTurn
var ptr = Creaturelib.Generated.AttackTurnChoice.GetAttack(Ptr);
if (TryResolvePointer(ptr, out _move))
return _move!;
_move = new LearnedMove(ptr);
_move = Constructor.Active.ConstructLearnedMove(ptr)!;
return _move;
}
}

Loading…
Cancel
Save