mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 07:44:31 +02:00
Set second type to typeless with Protean ability
This commit is contained in:
parent
da107320cc
commit
6e106a28fa
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user