comparison Main.lua @ 60:3a6693c99bb3

Bail out early in COMBAT_TEXT_UPDATE if action_data.npc_level is nil.
author James D. Callahan III <jcallahan@curse.com>
date Thu, 05 Jul 2012 10:22:42 -0500
parents 059341095e99
children 0d3c915e99bf
comparison
equal deleted inserted replaced
59:059341095e99 60:3a6693c99bb3
681 } 681 }
682 } 682 }
683 683
684 684
685 function WDP:COMBAT_TEXT_UPDATE(event, message_type, faction_name, amount) 685 function WDP:COMBAT_TEXT_UPDATE(event, message_type, faction_name, amount)
686 if message_type ~= "FACTION" then 686 if message_type ~= "FACTION" or not action_data.npc_level then
687 return 687 return
688 end 688 end
689 UpdateFactionData() 689 UpdateFactionData()
690 690
691 if not faction_name or not faction_standings[faction_name] then 691 if not faction_name or not faction_standings[faction_name] then