This commit is contained in:
@@ -13,6 +13,9 @@ public class ImprisonEffect : Script, IScriptPreventMoveSelection
|
||||
/// <inheritdoc />
|
||||
public void PreventMoveSelection(IMoveChoice choice, ref bool prevent)
|
||||
{
|
||||
if (choice.User.BattleData?.BattleSide == _user.BattleData?.BattleSide)
|
||||
return;
|
||||
|
||||
if (_user.Moves.WhereNotNull().Any(x => x.MoveData.Name == choice.ChosenMove.MoveData.Name))
|
||||
prevent = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user