Set second type to typeless with Protean ability

This commit is contained in:
JappaWakka 2022-12-18 20:18:35 +01:00
parent da107320cc
commit 6e106a28fa
1 changed files with 3 additions and 0 deletions

View File

@ -2005,6 +2005,9 @@
If p.Ability.Name.ToLower() = "protean" Then If p.Ability.Name.ToLower() = "protean" Then
If p.Type1.Type <> moveUsed.Type.Type Or p.Type2.Type <> Element.Types.Blank Then If p.Type1.Type <> moveUsed.Type.Type Or p.Type2.Type <> Element.Types.Blank Then
p.Type1.Type = moveUsed.Type.Type p.Type1.Type = moveUsed.Type.Type
If p.Type2.Type <> Element.Types.Blank Then
p.Type2.Type = Element.Types.Blank
End If
BattleScreen.BattleQuery.Add(New TextQueryObject(p.GetDisplayName() & "'s type changed to " & p.Type1.ToString() & " due to Protean.")) BattleScreen.BattleQuery.Add(New TextQueryObject(p.GetDisplayName() & "'s type changed to " & p.Type1.ToString() & " due to Protean."))
End If End If
End If End If