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

Can not Time Skip the Fragmented Essence of Harkor'Zun

git-svn-id: http://svn.net-core.org/repos/t-engine4@6020 51575b47-30f0-44d4-a5cc-537603b46e54
parent 824986af
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,7 @@ newEntity{ base = "BASE_NPC_XORN",
max_life = 230, life_rating = 12,
combat_armor = 15, combat_def = 10,
combat = { damtype=DamageType.ACID },
timetravel_immune = 1,
ai = "tactical",
ai_tactic = resolvers.tactic"melee",
......
......@@ -74,6 +74,12 @@ newTalent{
local _ _, x, y = self:canProject(tg, x, y)
local target = game.level.map(x, y, Map.ACTOR)
if not target then return end
if target:attr("timetravel_immune") then
game.logSeen(target, "%s is immune!", target.name:capitalize())
return
end
local hit = self:checkHit(self:combatSpellpower(), target:combatSpellResist() + (target:attr("continuum_destabilization") or 0))
if not hit then game.logSeen(target, "%s resists!", target.name:capitalize()) return true end
......
......@@ -767,9 +767,15 @@ newInscription{
local _ _, x, y = self:canProject(tg, x, y)
local target = game.level.map(x, y, Map.ACTOR)
if not target then return end
if target:attr("timetravel_immune") then
game.logSeen(target, "%s is immune!", target.name:capitalize())
return
end
local hit = self:checkHit(self:combatSpellpower(), target:combatSpellResist() + (target:attr("continuum_destabilization") or 0))
if not hit then game.logSeen(target, "%s resists!", target.name:capitalize()) return true end
self:project(tg, x, y, DamageType.TEMPORAL, self:spellCrit(t.getDamage(self, t)))
game.level.map:particleEmitter(x, y, 1, "temporal_thrust")
game:playSoundNear(self, "talents/arcane")
......
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