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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@4314 51575b47-30f0-44d4-a5cc-537603b46e54
parent c95c85ed
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ newTalent{
if o.combat and not o.archery then
print("[PSI ATTACK] attacking with", o.name)
self.use_psi_combat = true
local s, h = self:attackTargetWith(a, o.combat, nil, 1, self)
local s, h = self:attackTargetWith(a, o.combat, nil, 1)
self.use_psi_combat = false
speed = math.max(speed or 0, s)
hit = hit or h
......
......@@ -169,7 +169,7 @@ newTalent{
--local tg = {type="hit", range=10, talent=t}
for i = 1, targnum do
if #tgts <= 0 then break end
local a, id = rng.table(tgts)
--local a, id = tgts[i]
--local targets = self:archeryAcquireTargets(target)
......@@ -185,13 +185,13 @@ newTalent{
if am then
targets = {{x=a.x, y=a.y, ammo=am.combat}}
end
if self:getInven(self.INVEN_PSIONIC_FOCUS) then
for i, o in ipairs(self:getInven(self.INVEN_PSIONIC_FOCUS)) do
if o.combat and o.archery then
print("[PSI ATTACK] attacking with", o.name)
self:archeryShoot(targets, t, nil, {use_psi_archery = true})
--local s, h = self:attackTargetWith(a, o.combat, nil, 1, self)
--local s, h = self:attackTargetWith(a, o.combat, nil, 1)
--speed = math.max(speed or 0, s)
--hit = hit or h
--if hit and not sound then sound = o.combat.sound
......
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