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

Time Prisoning yourself can not fail

git-svn-id: http://svn.net-core.org/repos/t-engine4@4249 51575b47-30f0-44d4-a5cc-537603b46e54
parent e439ff50
No related branches found
No related tags found
No related merge requests found
......@@ -977,7 +977,7 @@ newDamageType{
if target then
-- Freeze it, if we pass the test
local sx, sy = game.level.map:getTileToScreen(x, y)
if target:checkHit(src:combatSpellpower(), target:combatSpellResist() + (target:attr("continuum_destabilization") or 0), 0, 95, 20) then
if src == target or target:checkHit(src:combatSpellpower(), target:combatSpellResist() + (target:attr("continuum_destabilization") or 0), 0, 95, 20) then
target:setEffect(target.EFF_TIME_PRISON, dam, {})
target:setEffect(target.EFF_CONTINUUM_DESTABILIZATION, 100, {power=src:combatSpellpower(0.3)})
else
......@@ -1687,7 +1687,7 @@ newDamageType{
--make it dark
game.level.map.remembers(x, y, false)
game.level.map.lites(x, y, false)
local target = game.level.map(x, y, Map.ACTOR)
local reapplied = false
if target then
......@@ -1703,7 +1703,7 @@ newDamageType{
else
game.logSeen(target, "%s resists the shroud!", target.name:capitalize())
end
DamageType:get(DamageType.DARKNESS).projector(src, x, y, DamageType.DARKNESS, dam.dam)
end
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