Skip to content
Snippets Groups Projects
Commit 090ba932 authored by DarkGod's avatar DarkGod
Browse files

Acid Wave and Biting Gale runes correctly check their corresponding immunities

parent af1210c7
No related branches found
No related tags found
No related merge requests found
......@@ -51,4 +51,6 @@ void main(void)
float dist = length(gl_TexCoord[0].xy - vec2(0.5)) / 2.0;
gl_FragColor = mix(gl_FragColor, solipsism_warning_color, dist);
}
// gl_FragColor.rgb = vec3(gl_FragColor.b, gl_FragColor.g, gl_FragColor.r);
}
......@@ -753,8 +753,9 @@ newInscription{
-- Minor damage, apply stun resist reduction, freeze
DamageType:get(DamageType.COLD).projector(target, tx, ty, DamageType.COLD, damage)
target:setEffect(target.EFF_WET, 5, {apply_power=data.inc_stat})
target:setEffect(target.EFF_FROZEN, 2, {hp=damage*1.5, apply_power=apply})
if target:canBe("stun") then
target:setEffect(target.EFF_FROZEN, 2, {hp=damage*1.5, apply_power=apply})
end
end, data.power + data.inc_stat, {type="freeze"})
self:removeEffectsFilter({status="detrimental", type="mental", ignore_crosstier=true}, 1)
game:playSoundNear(self, "talents/ice")
......@@ -815,10 +816,12 @@ newInscription{
self:removeEffectsFilter({status="detrimental", type="magical", ignore_crosstier=true}, 1)
self:project(tg, x, y, function(tx, ty)
local target = game.level.map(tx, ty, Map.ACTOR)
if not target or target == self then return end
target:setEffect(target.EFF_DISARMED, data.dur, {})
if target:canBe("disarm") then
target:setEffect(target.EFF_DISARMED, data.dur, {})
end
DamageType:get(DamageType.ACID).projector(self, tx, ty, DamageType.ACID, data.power + data.inc_stat)
......
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