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

Lichform necromancers can not use infusions

git-svn-id: http://svn.net-core.org/repos/t-engine4@4797 51575b47-30f0-44d4-a5cc-537603b46e54
parent 6b6e473d
No related branches found
No related tags found
No related merge requests found
......@@ -2428,6 +2428,11 @@ function _M:preUseTalent(ab, silent, fake)
return false
end
if ab.is_inscription and self.inscription_restrictions and not self.inscription_restrictions[ab.type[1]] then
if not silent then game.logSeen(self, "%s is unable to use this kind of inscription.", self.name:capitalize()) end
return
end
-- when using unarmed techniques check for weapons and heavy armor
if ab.is_unarmed and not (ab.mode == "sustained" and self:isTalentActive(ab.id)) then
-- first check for heavy and massive armor
......
......@@ -55,6 +55,7 @@ local newInscription = function(t)
tt.image = "talents/"..(t.short_name or t.name):lower():gsub("[^a-z0-9_]", "_")..".png"
end
tt.no_unlearn_last = true
tt.is_inscription = true
newTalent(tt)
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