[1.6.5]Two bugs in Cursed Sentry

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
starsapphire
Thalore
Posts: 132
Joined: Sat Sep 27, 2014 11:33 am
Location: Irkkk

[1.6.5]Two bugs in Cursed Sentry

#1 Post by starsapphire »

in data/talents/cursed/cursed-aura.lua:520

Code: Select all

	local egos = o.egos_number or (o.ego_list and #o.ego_list) or (e.egoed and 1) or 0
e.egoed shoud be o.egoed instead.

in data/talents/cursed/cursed-aura.lua:540

Code: Select all

	local dammod = sentry:getDammod(o.combat.dammod or {})
	if qo then
		for stat, mod in pairs(sentry:getDammod(qo.combat.dammod or {})) do
			dammod[stat] = (dammod[stat] or 0) + mod
		end
	end
getDammod accept combat as parameter, not combat.dammod
Also, it would return 0.6 str as default, so in case of ammo, the dammod should be cleared.
It should be

Code: Select all

    local dammod = sentry:getDammod(o.combat)
    if qo then
        dammod = {}
        for stat, mod in pairs(sentry:getDammod(qo.combat or {})) do
            dammod[stat] = (dammod[stat] or 0) + mod
        end
    end

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

Re: [1.6.5]Two bugs in Cursed Sentry

#2 Post by darkgod »

Nice 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