Sentry Issue #223474603
Handle null gun in Minestrike Steps to reproduce: 1) Bring a player down to low health using a molotov 2) Kill them with a grenade
This commit is contained in:
parent
9571db123d
commit
3f40432268
@ -414,6 +414,12 @@ public class Minestrike extends TeamGame
|
||||
int amount;
|
||||
|
||||
String gunType = (String) event.GetLog().GetLastDamager().GetDamage().getFirst().getMetadata().get("gunType");
|
||||
if (gunType == null)
|
||||
{
|
||||
amount = 300;
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (gunType)
|
||||
{
|
||||
case "AWP":
|
||||
@ -431,6 +437,7 @@ public class Minestrike extends TeamGame
|
||||
default:
|
||||
amount = 300;
|
||||
}
|
||||
}
|
||||
|
||||
_shopManager.addMoney(killer, amount, "kill with " + event.GetLog().GetLastDamager().GetReason());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user