Hopefully fixed a null reference crash related to Honey Gather ability. Ajusted battle frontier BP reward values.

This commit is contained in:
CaptainSegis 2019-02-03 01:24:41 -05:00
parent ea51665dae
commit 3ee687df05
10 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ Namespace Abilities
Public Shared Sub GatherHoney()
For Each p As Pokemon In Core.Player.Pokemons
If p.Ability.Name.ToLower() = "honey gather" Then
If p.Ability IsNot Nothing AndAlso p.Ability.Name.ToLower() = "honey gather" Then
If p.Item Is Nothing Then
Dim chance As Integer = CInt(Math.Ceiling(p.Level / 10) * 5)
If Core.Random.Next(0, 100) < chance Then

Binary file not shown.