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

Time Prison applies the same continuum destabilization effect as phase door & teleport

git-svn-id: http://svn.net-core.org/repos/t-engine4@1244 51575b47-30f0-44d4-a5cc-537603b46e54
parent 28dad376
No related branches found
No related tags found
No related merge requests found
......@@ -600,8 +600,9 @@ 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(), 0, 95, 20) then
if 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
game.logSeen(target, "%s resists!", target.name:capitalize())
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