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

Can not rush while pinned

git-svn-id: http://svn.net-core.org/repos/t-engine4@1984 51575b47-30f0-44d4-a5cc-537603b46e54
parent eff9f4d0
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,8 @@ newTalent{
direct_hit = true,
requires_target = true,
action = function(self, t)
if self:attr("never_move") then game.logPlayer(self, "You can not do that currently.") return end
local tg = {type="hit", range=self:getTalentRange(t)}
local x, y, target = self:getTarget(tg)
if not x or not y or not target then return nil end
......
......@@ -73,6 +73,7 @@ newTalent{
game.logPlayer(self, "Your golem is currently inactive.")
return
end
if mover:attr("never_move") then game.logPlayer(self, "Your golem can not do that currently.") return end
local tg = {type="ball", radius=2, friendlyfire=false, range=self:getTalentRange(t)}
game.target.source_actor = mover
......
......@@ -220,6 +220,7 @@ newTalent{
game.logPlayer(self, "Your golem is currently inactive.")
return
end
if mover:attr("never_move") then game.logPlayer(self, "Your golem can not do that currently.") return end
local tg = {type="hit", range=self:getTalentRange(t)}
game.target.source_actor = mover
......@@ -278,6 +279,7 @@ newTalent{
game.logPlayer(self, "Your golem is currently inactive.")
return
end
if mover:attr("never_move") then game.logPlayer(self, "Your golem can not do that currently.") return end
local tg = {type="hit", range=self:getTalentRange(t)}
game.target.source_actor = mover
......
......@@ -62,6 +62,8 @@ newTalent{
requires_target = true,
range = function(self, t) return math.floor(5 + self:getTalentLevel(t)) end,
action = function(self, t)
if self:attr("never_move") then game.logPlayer(self, "You can not do that currently.") return end
local tg = {type="hit", range=self:getTalentRange(t)}
local x, y, target = self:getTarget(tg)
if not x or not y or not target then return nil 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