What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Is there a way to check Creature Type?

sanandreas

New Member
Joined
Dec 16, 2010
Messages
3
Reaction score
0
I'm trying to make my targeting routine in my own CC stop targeting Critters. And before you suggest it, IsCritter always returns false, WoWCreatureType.Critter always returns false, x.CreatureType (where x is the mob's WoWUnit) always returns "Unknown."

These apply no matter what mob I target, whether or not the mob has actually been x.Target()'ed and whatever my setup is. I.e. it fails the same way regardless of Addons, Plugins and so forth.

Is this a bug in HB 2.0.0.4982 itself? Is there any other way to check a mob's creature type? Other properties such as x.Name work fine, just not creature type.

Thanks!
 
Code:
UnitCreatureType("target")

Code:
return Lua.GetReturnValues("return UnitCreatureType("target")")== "Critter";

This works if u target the unit
 
Back
Top