[git]fix On spell talent procs

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
zhouwei_e
Cornac
Posts: 35
Joined: Tue Feb 14, 2012 10:01 am

[git]fix On spell talent procs

#1 Post by zhouwei_e »

Code: Select all

 game/modules/tome/data/damage_types.lua |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/game/modules/tome/data/damage_types.lua b/game/modules/tome/data/damage_types.lua
index e569d89..5dfa5de 100644
--- a/game/modules/tome/data/damage_types.lua
+++ b/game/modules/tome/data/damage_types.lua
@@ -295,7 +295,7 @@ setDefaultProjector(function(src, x, y, type, dam, tmp, no_martyr)
 			end
 
 			if src.__projecting_for then
-				if src.talent_on_spell and next(src.talent_on_spell) and t.is_spell and not src.turn_procs.spell_talent then
+				if src.talent_on_spell and next(src.talent_on_spell) and t.is_spell and src.turn_procs and not src.turn_procs.spell_talent then
 					for id, d in pairs(src.talent_on_spell) do
 						if rng.percent(d.chance) and t.id ~= d.talent then
 							src.turn_procs.spell_talent = true

Post Reply