System Simple Stun System

Flare

Stops copies me!
Reaction score
662
it's the same

I think it can be buggy if you don't compare it to true/false (IsUnitType returns 64 when using a Boolean2Integer typecast, whereas other boolean conditions returned 0 or 1 - 0 being true, 1 being false)

EDIT: Turns out it was Vexorian, and he posted it over at WC3 JASS - link

Long story short, IsUnitType is a buggy condition, unless you compare it to true or false
 

Tukki

is Skeleton Pirate.
Reaction score
29
Flare speaks the truth. Normally it shouldn't make any difference but with IsUnitType condition..

Actually it works (as you did) if you are using the UNIT_TYPE_HERO.
 

Tukki

is Skeleton Pirate.
Reaction score
29
You read the link Flare gave you?

If you did and still don't get it follow this:

Always use the suffix "== true/false" when dealing with IsUnitType() functions, as WcIII engine may bugg and the function will be killed.
 

Matrix

New Member
Reaction score
5
Ooh I just thought I have to use it with every function returning boolean. thx for explaingng =)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top