Implements several more moves

This commit is contained in:
Deukhoofd committed 2025-01-10 13:45:29 +01:00
1 parent 0ad692a921
commit ecdc9c7654
12 files changed
+206 -16

No files matched your search

@@ -12,15 +12,7 @@ public abstract class ProtectionEffectScript : Script
if (target.BattleData == null)
return;
var originalTarget = executingMove.MoveChoice.TargetPosition;
var targetPosition = target.BattleData.Position;
// We only want to block the hit if it's explicitly targeting the Pokemon.
if (targetPosition != originalTarget)
return;
if (executingMove.UseMove.Target is MoveTarget.All or MoveTarget.SelfUse or MoveTarget.AllAlly
or MoveTarget.AllAdjacent)
if (!executingMove.UseMove.HasFlag("protect"))
return;
block = true;