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

Fix Golem Pound

git-svn-id: http://svn.net-core.org/repos/t-engine4@4343 51575b47-30f0-44d4-a5cc-537603b46e54
parent 5793f779
No related branches found
No related tags found
No related merge requests found
......@@ -209,7 +209,7 @@ newTalent{
stamina = 5,
requires_target = true,
target = function(self, t)
return {type="ballbolt", radius=self:getTalentRadius(t), selffire=false, range=self:getTalentRange(t), min_range=2}
return {type="ballbolt", radius=self:getTalentRadius(t), selffire=false, range=self:getTalentRange(t)}
end,
getGolemDamage = function(self, t)
return self:combatTalentWeaponDamage(t, 0.4, 1.1)
......@@ -248,7 +248,8 @@ newTalent{
if self.ai_target then self.ai_target.target = target end
-- Attack & daze
self:project(tg, tx, ty, function(xx, yy)
tg.type = "ball"
self:project(tg, self.x, self.y, function(xx, yy)
if xx == self.x and yy == self.y then return end
local target = game.level.map(xx, yy, Map.ACTOR)
if target and self:attackTarget(target, nil, t.getGolemDamage(self, t), true) 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