Skip to content

Commit b8e1141

Browse files
#EVENT - Event Shoot fix for ZELL Boosters
1 parent f083b77 commit b8e1141

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Moose Development/Moose/Core/Event.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,8 @@ function EVENT:onEvent( Event )
14531453
-- Weapon.
14541454
if Event.weapon and type(Event.weapon) == "table" and Event.weapon.isExist and Event.weapon:isExist() then
14551455
Event.Weapon = Event.weapon
1456-
Event.WeaponName = Event.weapon:isExist() and Event.weapon:getTypeName() or "Unknown Weapon"
1456+
Event.WeaponName = Event.weapon:isExist() and Event.weapon.getTypeName and Event.weapon:getTypeName() or "Unknown Weapon"
1457+
if Event.weapon_name == "ZELL Booster" then Event.WeaponName = "ZELL Booster" end
14571458
Event.WeaponUNIT = CLIENT:Find( Event.Weapon, '', true ) -- Sometimes, the weapon is a player unit!
14581459
Event.WeaponPlayerName = Event.WeaponUNIT and Event.Weapon.getPlayerName and Event.Weapon:getPlayerName()
14591460
--Event.WeaponPlayerName = Event.WeaponUNIT and Event.Weapon:getPlayerName()

0 commit comments

Comments
 (0)