HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

UNIT_TYPE_STUNNED not working??

08-25-2009, 05:56 AM#1
TheWye
I tried detecting if my unit is stunned with IsUnitType(myUnit, UNIT_TYPE_STUNNED) but it turns out that it doesn't show true if it is stunned. I tried using 'ANbh' (neutral hostile bash) as the stunning ability. So is this function bugged or I'm using it wrong?
08-25-2009, 05:58 AM#2
Rising_Dusk
Detect the buff with GetUnitAbilityLevel(), God only knows what Blizz was thinking with UNIT_TYPE_STUNNED.
08-25-2009, 06:11 AM#3
TheWye
So that means I need to detect the buff for each stunning ability? Aww man... its kinda weird since UNIT_TYPE_SNARED actually works fine though. Thanks for the answer anyway :)
08-25-2009, 06:11 AM#4
Anachron
Nope, you need to check for buffs.
08-25-2009, 08:08 AM#5
darkwulfv
And if you use a single, general stun buff for your stun spells, this shouldn't be too big of a problem.
08-25-2009, 10:10 AM#6
TheWye
Hmm.. I see. But what I'm not sure is the stun buffs for impale, volcano and Cluster rockets. Are they supposed to have their own stun buffs or I can actually use the general stun buff?

EDIT: oh and just to share what I have found, the UNIT_TYPE_SNARED and UNIT_TYPE_SLEEPING actually works as how they should be. And "SNARED" includes entangling roots, ensnare and web spells.
08-25-2009, 03:41 PM#7
Zerzax
I think 99% of the stuns are "BSTN". the rest are "BPSE". Check both.
08-25-2009, 05:17 PM#8
Rising_Dusk
Or just have all stuns in your map use the same buff like most sane mapmakers.