Make paralysis actually fail moves too

This commit is contained in:
JappaWakka 2025-02-11 11:01:37 +01:00
parent 96276520e3
commit f4f8a63d93
23 changed files with 96 additions and 1 deletions

View File

@ -1730,6 +1730,7 @@
BattleScreen.BattleQuery.Add(New PlaySoundQueryObject("Battle\Effects\Paralyzed", False))
End If
BattleScreen.BattleQuery.Add(New TextQueryObject(p.GetDisplayName() & " is fully paralyzed!" & Environment.NewLine & "It cannot move!"))
moveUsed.IsParalyzed(own, BattleScreen)
Exit Sub
End If
End If

View File

@ -2271,7 +2271,17 @@
End If
'DO NOTHING
End Sub
''' <summary>
''' Event that occurs when the pokemon can't attack because of paralysis.
''' </summary>
''' <param name="Own">If the own Pokémon is in love.</param>
''' <param name="BattleScreen">Reference to the BattleScreen.</param>
Public Overridable Sub IsParalyzed(ByVal own As Boolean, ByVal BattleScreen As BattleScreen)
If gmCopyMove <> -1 Then
GetAttackByID(gmCopyMove).IsParalyzed(own, BattleScreen)
End If
'DO NOTHING
End Sub
''' <summary>
''' Event that occurs when a the pokemon has been put to sleep.
''' </summary>

View File

@ -128,6 +128,10 @@
ResetCounter(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
ResetCounter(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
ResetCounter(own, BattleScreen)
End Sub

View File

@ -130,6 +130,10 @@
Interruption(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
Interruption(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
Interruption(own, BattleScreen)
End Sub

View File

@ -141,6 +141,10 @@ Namespace BattleSystem.Moves.Fairy
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub

View File

@ -169,6 +169,10 @@
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub HurtItselfInConfusion(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub

View File

@ -173,6 +173,10 @@
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub

View File

@ -174,6 +174,10 @@
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub

View File

@ -175,6 +175,10 @@ Namespace BattleSystem.Moves.Ghost
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub

View File

@ -175,6 +175,10 @@ Namespace BattleSystem.Moves.Ghost
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub

View File

@ -130,6 +130,10 @@
Interruption(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
Interruption(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
Interruption(own, BattleScreen)
End Sub

View File

@ -192,6 +192,10 @@
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub

View File

@ -191,6 +191,10 @@
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub

View File

@ -175,6 +175,10 @@
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub

View File

@ -135,6 +135,10 @@
Interruption(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
Interruption(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
Interruption(own, BattleScreen)
End Sub

View File

@ -141,6 +141,10 @@
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub

View File

@ -129,6 +129,10 @@
ResetCounter(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
ResetCounter(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
ResetCounter(own, BattleScreen)
End Sub

View File

@ -173,6 +173,10 @@
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub

View File

@ -175,6 +175,10 @@
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub

View File

@ -129,6 +129,10 @@
Interruption(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
Interruption(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
Interruption(own, BattleScreen)
End Sub

View File

@ -118,6 +118,10 @@
Interruption(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
Interruption(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
Interruption(own, BattleScreen)
End Sub

View File

@ -146,6 +146,10 @@ Namespace BattleSystem.Moves.Rock
Interruption(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
Interruption(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
Interruption(own, BattleScreen)
End Sub

View File

@ -177,6 +177,10 @@
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsParalyzed(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub
Public Overrides Sub IsAttracted(own As Boolean, BattleScreen As BattleScreen)
MoveFails(own, BattleScreen)
End Sub