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

Phase Door range starts smaller

When Phase Door fizzles you get a random blink instead of nothing


git-svn-id: http://svn.net-core.org/repos/t-engine4@2272 51575b47-30f0-44d4-a5cc-537603b46e54
parent cac1d1aa
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ newTalent{
ESCAPE = 4,
},
requires_target = function(self, t) return self:getTalentLevel(t) >= 4 end,
getRange = function(self, t) return 10 + self:combatSpellpower(0.1) end,
getRange = function(self, t) return 4 + self:combatTalentSpellDamage(t, 10, 15) end,
getRadius = function(self, t) return 7 - self:getTalentLevelRaw(t) end,
action = function(self, t)
local target = self
......@@ -70,8 +70,9 @@ newTalent{
-- Check LOS
if not self:hasLOS(x, y) and rng.percent(35) then
game.logPlayer(self, "The spell fizzles!")
return true
game.logPlayer(self, "The targetted phase door fizzles and works randomly!")
x, y = self.x, self.y
rad = t.getRange(self, t)
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