We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57c53b5 commit 2209500Copy full SHA for 2209500
app/Models/SC/Char/PersonalWeapon/PersonalWeaponMode.php
@@ -39,6 +39,6 @@ public function getDamagePerSecondAttribute(): float
39
{
40
$multiplier = $this->rounds_per_minute / 60;
41
42
- return $this->weapon->ammunition->damage * $multiplier;
+ return $this->weapon?->ammunition?->damage * $multiplier;
43
}
44
0 commit comments