weakness power

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
liatsineam
Posts: 4
Joined: Mon Feb 13, 2012 1:34 pm

weakness power

#1 Post by liatsineam »

Code: Select all

newDamageType{
	name = "weakness", type = "WEAKNESS",
	projector = function(src, x, y, type, dam, tmp)
		local target = game.level.map(x, y, Map.ACTOR)
		if target then
			local reapplied = target:hasEffect(target.EFF_WEAKENED)
			target:setEffect(target.EFF_WEAKENED, dam.dur, { power=incDamage }, reapplied)
		end
	end,
}
power=incDamage should be power=dam.incDamage

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

Re: weakness power

#2 Post by darkgod »

fixed
[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