Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions EXILED/Exiled.CustomItems/API/Features/CustomWeapon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public override ItemType Type
/// <summary>
/// Gets or sets the weapon damage.
/// </summary>
public virtual float Damage { get; set; } = float.NaN;
public virtual float Damage { get; set; } = -1;

/// <summary>
/// Gets or sets a value indicating how big of a clip the weapon will have.
Expand Down Expand Up @@ -205,7 +205,7 @@ protected virtual void OnShot(ShotEventArgs ev)
/// <param name="ev"><see cref="HurtingEventArgs"/>.</param>
protected virtual void OnHurting(HurtingEventArgs ev)
{
if (ev.IsAllowed && Damage != float.NaN)
if (ev.IsAllowed && Damage >= 0)
ev.Amount = Damage;
}

Expand Down
Loading