From 6119d33b39a97d4c5dc972cc5a563ce76fdbeecb Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Mon, 28 Oct 2013 11:52:48 +0100
Subject: [PATCH] fix AM quest

---
 game/modules/tome/data/quests/antimagic.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game/modules/tome/data/quests/antimagic.lua b/game/modules/tome/data/quests/antimagic.lua
index 81806409c8..7f46dc6ff5 100644
--- a/game/modules/tome/data/quests/antimagic.lua
+++ b/game/modules/tome/data/quests/antimagic.lua
@@ -33,7 +33,7 @@ on_status_change = function(self, who, status, sub)
 		who:setQuestStatus(self.id, engine.Quest.DONE)
 		local p = game.party:findMember{main=true}
 		p:attr("forbid_arcane", 1)
-		if p:knowTalentType("wild-gift/antimagic") ~= nil then
+		if p:knowTalentType("wild-gift/antimagic") == true then
 			p:setTalentTypeMastery("wild-gift/antimagic", p:getTalentTypeMastery("wild-gift/antimagic") + 0.1)
 		else
 			p:learnTalentType("wild-gift/antimagic", true)
-- 
GitLab