Page 1 of 1

a couple of skirmisher fixes

Posted: Sat Apr 26, 2014 4:29 pm
by lifanov
I'm not sure how to get deflection to work correctly, but this fixes a couple of things that make skirmisher unplayable.
Specifically offsetTarget is not defined anywhere:

Code: Select all

diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index d19b193..6c6409a 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -276,7 +276,7 @@ function _M:projectDoStop(typ, tg, damtype, dam, particles, lx, ly, tmp, rx, ry,
        if target and target.getTalentFromId and target ~= projectile.src then
                if target:knowTalent(target.T_SKIRMISHER_BUCKLER_MASTERY) then
                        local t = target:getTalentFromId(target.T_SKIRMISHER_BUCKLER_MASTERY)
-                       lx, ly = t.offsetTarget(target, t, lx, ly, projectile)  
+--                     lx, ly = t.offsetTarget(target, t, lx, ly, projectile)  
                        print("[SKIRMISHER] Deflected a projectile")
                end
        end
diff --git a/game/modules/tome/class/Object.lua b/game/modules/tome/class/Object.lua
index f76b235..ed32980 100644
--- a/game/modules/tome/class/Object.lua
+++ b/game/modules/tome/class/Object.lua
@@ -1742,7 +1742,7 @@ function _M:on_prepickup(who, idx)
        end
        if who.player and self.lore then
                game.level.map:removeObject(who.x, who.y, idx)
-               game.party:learnLore(sselflf.lore)
+               game.party:learnLore(self.lore)
                return true
        end
        if who.player and self.force_lore_artifact then

Re: a couple of skirmisher fixes

Posted: Sat Apr 26, 2014 6:42 pm
by darkgod
Well spotted thanks :)