Make moveflags of gen 7 plugin shared statically
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using PkmnLib.Plugin.Gen7.Common;
|
||||
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Status;
|
||||
|
||||
[Script(ScriptCategory.Status, "frozen")]
|
||||
@@ -18,7 +20,7 @@ public class Frozen : Script, IScriptPreventMove, IScriptOnEndTurn
|
||||
/// <inheritdoc />
|
||||
public void PreventMove(IExecutingMove move, ref bool prevent)
|
||||
{
|
||||
if (move.UseMove.MoveType.Name == "fire" || move.UseMove.HasFlag("defrost"))
|
||||
if (move.UseMove.MoveType.Name == "fire" || move.UseMove.HasFlag(MoveFlags.Defrost))
|
||||
{
|
||||
_pokemon?.ClearStatus();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user