Validate movechoice target
This commit is contained in:
@@ -236,7 +236,9 @@ public class BattleImpl : ScriptSource, IBattle
|
||||
// TODO: Hook to change number of PP needed.
|
||||
if (moveChoice.ChosenMove.CurrentPp < 1)
|
||||
return false;
|
||||
// TODO: Validate target
|
||||
if (!TargetResolver.IsValidTarget(moveChoice.TargetSide, moveChoice.TargetPosition,
|
||||
moveChoice.ChosenMove.MoveData.Target, moveChoice.User))
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user