Skip to content

Commit

Permalink
fix: add back missing method (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
luan authored Sep 30, 2023
1 parent d028130 commit b9b3d88
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data/libs/functions/creature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,14 @@ function Creature.getKillers(self, onlyPlayers)
end
return killers
end

function Creature:addEventStamina(target)
local player = self:getPlayer()
local monster = target:getMonster()
if player and monster and monster:getName() == staminaBonus.target then
local playerId = player:getId()
if not staminaBonus.eventsTrainer[playerId] then
staminaBonus.eventsTrainer[playerId] = addEvent(addStamina, staminaBonus.period, playerId)
end
end
end

0 comments on commit b9b3d88

Please sign in to comment.