Skip to content

Commit

Permalink
one more fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sayterdarkwynd committed Jan 11, 2020
1 parent 4d94e4f commit 25bdc10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions items/active/weapons/ranged/gunfire.lua
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ function GunFire:uninit()
self.helper:clearPersistent()
end
status.clearPersistentEffects("weaponBonus") --clear bonuses
if (self.isAmmoBased == 1) then
world.sendEntityMessage(self.playerId,"removeBar","ammoBar") --clear ammo bar
end
end

function GunFire:isResetting()
Expand Down
3 changes: 3 additions & 0 deletions items/active/weapons/ranged/gunfirefixed.lua
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ end

function GunFireFixed:uninit()
status.clearPersistentEffects("weaponBonus")
if (self.isAmmoBased == 1) then
world.sendEntityMessage(self.playerId,"removeBar","ammoBar") --clear ammo bar
end
end

function GunFireFixed:isResetting()
Expand Down

0 comments on commit 25bdc10

Please sign in to comment.