Cyst Burst spread description or implementation bug

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Cyst Burst spread description or implementation bug

#1 Post 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.
<DarkGod> lets say it's intended

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

Re: Cyst Burst spread description or implementation bug

#2 Post by darkgod »

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