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

Spell sustains will correctly disable when learning antimagic

git-svn-id: http://svn.net-core.org/repos/t-engine4@3411 51575b47-30f0-44d4-a5cc-537603b46e54
parent f7f86d40
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,6 @@ end
local sex = game.player.female and "Sister" or "Brother"
local remove_magic = function(npc, player)
player:attr("forbid_arcane", 1)
for tid, _ in pairs(player.sustain_talents) do
local t = player:getTalentFromId(tid)
if t.is_spell then player:forceUseTalent(tid, {ignore_energy=true}) end
......@@ -49,6 +47,7 @@ local remove_magic = function(npc, player)
end
end
end
player:attr("forbid_arcane", 1)
player.changed = true
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