You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enter into combat with anything. If you evade a mobs attack, server will crash with a null exception.
The log given by the failure.
Null check missing at line 138 of Player_Combat.cs. Function Math.Round(), at line 149, cannot be performed on damage.Value, when damage is null
Desired functionality.
Line 138 of Player_Combat.cs should probably be changed to "if (damage != null && target.Health.Current > 0)", instead of "if (target.Health.Current > 0)", as that whole if branch isn't needed if the attack was evaded.
The text was updated successfully, but these errors were encountered:
Bug Report or Feature Request (mark with an
x
)Repro steps.
Enter into combat with anything. If you evade a mobs attack, server will crash with a null exception.
The log given by the failure.
Null check missing at line 138 of Player_Combat.cs. Function Math.Round(), at line 149, cannot be performed on damage.Value, when damage is null
Desired functionality.
Line 138 of Player_Combat.cs should probably be changed to "if (damage != null && target.Health.Current > 0)", instead of "if (target.Health.Current > 0)", as that whole if branch isn't needed if the attack was evaded.
The text was updated successfully, but these errors were encountered: