# HG changeset patch # User contrebasse # Date 1292017590 -3600 # Node ID d66bb6a8d8bbaf1958f946554da75fc5224fd1a9 # Parent f14fad7938a4cff3be1e8a2ccce54a8b42740388 Correct OnEvent with events1player diff -r f14fad7938a4 -r d66bb6a8d8bb Degaine.lua --- a/Degaine.lua Fri Dec 10 22:42:46 2010 +0100 +++ b/Degaine.lua Fri Dec 10 22:46:30 2010 +0100 @@ -114,7 +114,7 @@ UNIT_SPELLCAST_INTERRUPTED = true, UNIT_SPELLCAST_SUCCEEDED = true, } -local SpellWhiteList = { +local SpellWhiteList = { -- Spells that do steath weapons (works with events1player) [8690] = true, -- Heartstone [818] = true, -- Basic Campfire } @@ -251,7 +251,7 @@ end elseif events1player[event] then if arg1=="player" then - if arg5==nil or SpellWhiteList[arg5] then -- arg5 is SpellID + if arg5 and SpellWhiteList[arg5] then -- arg5 is SpellID start() end end