Page 1 of 1

Cyst Burst spread description or implementation bug

Posted: Fri Dec 31, 2010 3:29 am
by yufra
The description says "spread to nearby foes" but the check is actually if it is the source (player). I suggest the description be changed to "spread to those nearby (except the caster)" or update the code as below:

Code: Select all

		if #diseases > 0 then
			self:project({type="ball", radius=1 + math.floor(self:getTalentLevelRaw(t) / 2), range=self:getTalentRange(t)}, x, y, function(px, py)
				local target = game.level.map(px, py, engine.Map.ACTOR)
				if not target or target == source or target == self  or (self:reactionToward(target) >= 0) then return end

				local disease = rng.table(diseases)
				target:setEffect(disease.id, 6, {src=self, dam=disease.params.dam, str=disease.params.str, dex=disease.params.dex, con=disease.params.con})
				game.level.map:particleEmitter(px, py, 1, "slime")
			end)
		end
EDIT: If the reaction check is added, it should be added to Epidemic's do_spread function as well. I nearly killed an escort when Carrier spread a disease to him.

Re: Cyst Burst spread description or implementation bug

Posted: Fri Dec 31, 2010 3:05 pm
by darkgod
done