Skip to content

Commit

Permalink
[Bug] fixes add skill talkaction from canary pack (opentibiabr#745)
Browse files Browse the repository at this point in the history
Fixed addskill talkaction bug
  • Loading branch information
dudantas committed Jan 12, 2023
1 parent 3fcddfa commit d1ac9a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data-canary/scripts/talkactions/god/add_skill.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ function addSkill.onSay(player, words, param)
target:addExperience(addExp, false)
elseif ch == "m" then
for i = 1, count do
target:addManaSpent(target:getVocation():getRequiredManaSpent(target:getBaseMagicLevel() + 1) - target:getManaSpent())
target:addManaSpent(target:getVocation():getRequiredManaSpent(target:getBaseMagicLevel() + 1) - target:getManaSpent(), true)
end
else
local skillId = getSkillId(split[2])
for i = 1, count do
target:addSkillTries(skillId, target:getVocation():getRequiredSkillTries(skillId, target:getSkillLevel(skillId) + 1) - target:getSkillTries(skillId))
target:addSkillTries(skillId, target:getVocation():getRequiredSkillTries(skillId, target:getSkillLevel(skillId) + 1) - target:getSkillTries(skillId), true)
end
end
return false
Expand Down

0 comments on commit d1ac9a7

Please sign in to comment.