a couple of skirmisher fixes

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
lifanov
Cornac
Posts: 32
Joined: Sat Jan 14, 2012 12:53 am

a couple of skirmisher fixes

#1 Post 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

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: a couple of skirmisher fixes

#2 Post by darkgod »

Well spotted thanks :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply