Skip to content
Snippets Groups Projects
Commit fb9ca90a authored by dg's avatar dg
Browse files

Cyst Burst now spreads all plague tree diseases at once (rotting, decrepitude,...

Cyst Burst now spreads all plague tree diseases at once (rotting, decrepitude, weakness and epidemic)


git-svn-id: http://svn.net-core.org/repos/t-engine4@5038 51575b47-30f0-44d4-a5cc-537603b46e54
parent d5246383
No related branches found
No related tags found
No related merge requests found
......@@ -130,8 +130,11 @@ newTalent{
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, heal_factor=disease.params.heal_factor})
for _, disease in ipairs(diseases) do
if disease.id == self.EFF_WEAKNESS_DISEASE) or disease.id == self.EFF_DECREPITUDE_DISEASE or disease.id == self.EFF_ROTTING_DISEASE or disease.id == self.EFF_EPIDEMIC then
target:setEffect(disease.id, 6, {src=self, dam=disease.params.dam, str=disease.params.str, dex=disease.params.dex, con=disease.params.con, heal_factor=disease.params.heal_factor, apply_power=self:combatSpellpower()})
end
end
game.level.map:particleEmitter(px, py, 1, "slime")
end)
end
......@@ -141,7 +144,7 @@ newTalent{
end,
info = function(self, t)
return ([[Make your target's diseases burst, doing %0.2f blight damage for each disease it is infected with.
This will also spread a random disease to any nearby foes in a radius of %d.
This will also spread any decrepitude, weakness, rotting or epidemic diseases to any nearby foes in a radius of %d.
The damage will increase with your Magic stat.]]):
format(damDesc(self, DamageType.BLIGHT, self:combatTalentSpellDamage(t, 15, 85)), self:getTalentRadius(t))
end,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment