diff Constants.lua @ 151:e2331b00a1cf 1.0.15

Added some debugging prints (turned off). Removed defaulting to NPC if no target_type - simply ignore the loot. Removed setting target_type to NPC every time a target's location is updated. Ensure the unit name on the tooltip matches the spell's target name. Bumped DB version to 10.
author James D. Callahan III <jcallahan@curse.com>
date Wed, 03 Oct 2012 17:27:10 -0500
parents f9c81739cfe6
children 2fdc940c1748
line wrap: on
line diff
--- a/Constants.lua	Wed Oct 03 14:44:52 2012 -0500
+++ b/Constants.lua	Wed Oct 03 17:27:10 2012 -0500
@@ -47,6 +47,13 @@
 }
 
 
+private.ACTION_TYPE_NAMES = {}
+
+for name, bit in _G.pairs(private.ACTION_TYPE_FLAGS) do
+    private.ACTION_TYPE_NAMES[bit] = name
+end
+
+
 private.SPELL_LABELS_BY_NAME = {
     [_G.GetSpellInfo(13262)] = "DISENCHANT",
     [_G.GetSpellInfo(4036)] = "ENGINEERING",
@@ -73,7 +80,7 @@
     DISENCHANT = AF.ITEM,
     ENGINEERING = AF.NPC,
     EXTRACT_GAS = AF.ZONE,
-    FISHING =  AF.ZONE,
+    FISHING = AF.ZONE,
     HERB_GATHERING = bit.bor(AF.NPC, AF.OBJECT),
     MILLING = AF.ITEM,
     MIND_CONTROL = AF.NPC,