Skip to content
Snippets Groups Projects
Commit 8e2cb51d authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'CystBurstFix' into 'master'

Fix Cyst Burst improperly copying diseases

This fixes a pretty serious bug where diseases using effectTemporaryValue instead of addTemporaryValue can error when copied by Cyst Burst and cause their temp values to be permanent.  This doesn't effect most if any of the vanilla diseases, I only noticed it because of a Cults one which can just be rewritten for now.  Should be safe to leave this for 1.6 but figured I'd put it up now.

See merge request !498
parents 7d619f8f 401650ee
No related branches found
No related tags found
1 merge request!498Fix Cyst Burst improperly copying diseases
Pipeline #
......@@ -156,6 +156,7 @@ newTalent{
local parameters = table.clone(disease.params, true)
parameters.src = self
parameters.apply_power = self:combatSpellpower()
parameters.__tmpvals = nil
target:setEffect(disease.id, 6, parameters)
end
end)
......@@ -279,6 +280,7 @@ newTalent{
local disease = rng.table(diseases)
local params = table.clone(disease.params, true)
params.__tmpvals = nil
params.src = self
if target:canBe("disease") then
target:setEffect(disease.id, 6, params)
......
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