Skip to content
Snippets Groups Projects
Commit e8f72793 authored by dg's avatar dg
Browse files

fixes

git-svn-id: http://svn.net-core.org/repos/t-engine4@1270 51575b47-30f0-44d4-a5cc-537603b46e54
parent 11e7975f
No related branches found
No related tags found
No related merge requests found
......@@ -116,6 +116,7 @@ This one seems to go near the town of Minas Tirith in the West.]],
game.zone:addEntity(game.level, zemekkys, "actor", 41, 17)
game.zone:addEntity(game.level, g, "terrain", 41, 16)
game.player:move(40, 16, true)
end
on_status_change = function(self, who, status, sub)
......
......@@ -138,9 +138,8 @@ newTalent{
local turns = 3 + math.ceil(self:getTalentLevel(tWeakness))
local weapon = target:getInven("MAINHAND")
if weapon then
weapon = weapon[1] and weapon[1].combat
end
if weapon then weapon = weapon[1] and weapon[1].combat end
if not weapon or type(weapon) ~= "table" then weapon = nil end
weapon = weapon or target.combat
local attack = target:combatAttack(weapon) * (2 + self:getTalentLevel(tWeakness)) * 3.5 / 100
local damage = target:combatDamage(weapon) * (2 + self:getTalentLevel(tWeakness)) * 3.5 / 100
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment