Make moveflags of gen 7 plugin shared statically
This commit is contained in:
1 parent
77d7b86a3c
commit
6eba332096
33 files changed
+223
-146
No files matched your search
@@ -8,14 +8,14 @@ public class ThroatChopEffect : Script, IScriptPreventMoveSelection, IScriptFail
|
||||
/// <inheritdoc />
|
||||
public void PreventMoveSelection(IMoveChoice choice, ref bool prevent)
|
||||
{
|
||||
if (choice.ChosenMove.MoveData.HasFlag("sound"))
|
||||
if (choice.ChosenMove.MoveData.HasFlag(MoveFlags.Sound))
|
||||
prevent = true;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void FailMove(IExecutingMove move, ref bool fail)
|
||||
{
|
||||
if (move.UseMove.HasFlag("sound"))
|
||||
if (move.UseMove.HasFlag(MoveFlags.Sound))
|
||||
fail = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user