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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3960 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0d455f3a
No related branches found
No related tags found
No related merge requests found
......@@ -329,14 +329,13 @@ function _M:attackTargetWith(target, weapon, damtype, mult)
self:project({type="ball", radius=1, selffire=false}, target.x, target.y, DamageType.PHYSICAL, dam)
self:incStamina(-15)
self.shattering_impact_last_turn = game.turn
print"===========IMPACT"
end
-- Onslaught
if hitted and self:attr("onslaught") then
local dir = util.getDir(target.x, target.y, self.x, self.y)
local lx, ly = util.coordAddDir(self.x, self.y, dir_sides[dir].left)
local rx, ry = util.coordAddDir(self.x, self.y, dir_sides[dir].right)
local lx, ly = util.coordAddDir(self.x, self.y, dir_sides[dir or 6].left)
local rx, ry = util.coordAddDir(self.x, self.y, dir_sides[dir or 6].right)
local lt, rt = game.level.map(lx, ly, Map.ACTOR), game.level.map(rx, ry, Map.ACTOR)
if target:checkHit(self:combatAttack(weapon), target:combatPhysicalResist(), 0, 95, 10) and target:canBe("knockback") 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