Fixes NPE in GetPoisonLevel. (#150)
This commit is contained in:
parent
0ccf541d6d
commit
efbbd4c324
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ namespace Server.Items
|
|||
|
||||
public static bool IsPoisonImmune(BaseCreature bc) => bc?.PoisonImmune != null;
|
||||
|
||||
public static int GetPoisonLevel(BaseCreature bc) => (bc?.HitPoison.Level ?? -1) + 1;
|
||||
public static int GetPoisonLevel(BaseCreature bc) => (bc?.HitPoison?.Level ?? -1) + 1;
|
||||
|
||||
public static double GetBaseDifficulty(Mobile targ)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue