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.Pokemon;
|
||||
|
||||
[Script(ScriptCategory.Pokemon, "protect")]
|
||||
@@ -9,7 +11,7 @@ public class ProtectionEffectScript : Script, IScriptBlockIncomingHit
|
||||
if (target.BattleData == null)
|
||||
return;
|
||||
|
||||
if (!executingMove.UseMove.HasFlag("protect"))
|
||||
if (!executingMove.UseMove.HasFlag(MoveFlags.Protect))
|
||||
return;
|
||||
var args = new CustomTriggers.BypassProtectionArgs(executingMove, target, hitIndex, false);
|
||||
executingMove.User.RunScriptHook<IScriptCustomTrigger>(x =>
|
||||
|
||||
Reference in New Issue
Block a user