[Beta 1.0.5e] Antimagic not unlocked after quest

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
overgoat
Wyrmic
Posts: 289
Joined: Mon Sep 19, 2011 1:20 pm

[Beta 1.0.5e] Antimagic not unlocked after quest

#1 Post by overgoat »

Not sure if it is an intended change or not, but completing the Antimagic/Curse of Magic quest did not unlock the Antimagic tree for my Adventurer. It did increment up from 1.0 to 1.1, but was not unlocked.

Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Re: [Beta 1.0.5e] Antimagic not unlocked after quest

#2 Post by Hachem_Muche »

I'm sure you're supposed to know how to fight magic after finishing the quest. Fix:

Code: Select all

 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 8180640..7f46dc6 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)
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: [Beta 1.0.5e] Antimagic not unlocked after quest

#3 Post by darkgod »

fixed
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply