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

Fix Frenzy

git-svn-id: http://svn.net-core.org/repos/t-engine4@4933 51575b47-30f0-44d4-a5cc-537603b46e54
parent 88391bc5
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ newTalent{
target:setEffect(target.EFF_CURSED_WOUND, woundDuration, { healFactorChange=healFactorChange, totalDuration=woundDuration })
end
end
return true
end,
info = function(self, t)
......@@ -106,7 +106,7 @@ newTalent{
local attackChange = t.getAttackChange(self, t)
local effStalker = self:hasEffect(self.EFF_STALKER)
if core.fov.distance(self.x, self.y, effStalker.target.x, effStalker.target.y) > 1 then effStalker = nil end
if effStalker and core.fov.distance(self.x, self.y, effStalker.target.x, effStalker.target.y) > 1 then effStalker = nil end
for i = 1, 4 do
local target
if effStalker and not effStalker.target.dead then
......@@ -161,7 +161,7 @@ newTalent{
local attackCount = 0
local maxAttackCount = t.getMaxAttackCount(self, t)
while nextX and nextY and not is_corner_blocked do
local blockingTarget = game.level.map(nextX, nextY, Map.ACTOR)
if blockingTarget and self:reactionToward(blockingTarget) < 0 then
......
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