mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-25 23:05:24 +02:00
Small null reference fix
This commit is contained in:
parent
e16e4d3818
commit
6eb26a68e8
@ -11,7 +11,7 @@
|
|||||||
p = BattleScreen.OppPokemon
|
p = BattleScreen.OppPokemon
|
||||||
End If
|
End If
|
||||||
Dim ability As String = p.Ability.Name.ToLower()
|
Dim ability As String = p.Ability.Name.ToLower()
|
||||||
If BattleScreen.FieldEffects.CanUseItem(own) = True Then
|
If p.Item IsNot Nothing AndAlso BattleScreen.FieldEffects.CanUseItem(own) = True Then
|
||||||
Select Case p.Item.Name.ToLower()
|
Select Case p.Item.Name.ToLower()
|
||||||
Case "damp rock"
|
Case "damp rock"
|
||||||
If ability = "drizzle" Or moveName = "rain dance" Then
|
If ability = "drizzle" Or moveName = "rain dance" Then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user