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

Catalepsy can not crit, because it works of dieases which can crit, so it wont double crit

git-svn-id: http://svn.net-core.org/repos/t-engine4@5249 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7eb9e3ae
No related branches found
No related tags found
No related merge requests found
......@@ -196,7 +196,7 @@ newTalent{
-- Make them EXPLODE !!!
for i, d in ipairs(diseases) do
target:removeEffect(d.id)
DamageType:get(DamageType.BLIGHT).projector(self, px, py, DamageType.BLIGHT, self:spellCrit(d.params.dam * d.params.dur * t.getDamage(self, t)))
DamageType:get(DamageType.BLIGHT).projector(self, px, py, DamageType.BLIGHT, d.params.dam * d.params.dur * t.getDamage(self, t))
end
if #diseases > 0 and target:canBe("stun") then
......@@ -248,10 +248,10 @@ newTalent{
local disease = rng.table(diseases)
local params = disease.params
params.src = self
local disease_spread = {
local disease_spread = {
src=self, dam=disease.params.dam, str=disease.params.str, dex=disease.params.dex, con=disease.params.con, apply_power=self:combatSpellpower(),
heal_factor=disease.params.heal_factor, burst=disease.params.burst, rot_timer=disease.params.rot_timer, resist=disease.params.resist, make_ghoul=disease.params.make_ghoul,
}
}
if target:canBe("disease") then
target:setEffect(disease.id, 6, disease_spread)
else
......
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