Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
How to check if unit is ethereal?
How to check if unit is ethereal?
05-31-2008, 04:06 PM
#1
cohadar
huuummm?
05-31-2008, 04:11 PM
#2
Alexander244
IsUnitType
(
u
,
UNIT_TYPE_ETHEREAL
)
Or alternatively, does UnitDamageTarget return false from a non-magically attack on ethreal?
Edit: Returns true, but no damage is done
05-31-2008, 04:56 PM
#3
Toadcop
Quote:
IsUnitType(u, UNIT_TYPE_ETHEREAL)
if it does work so it's the best way... (for magic immune it does work.)
05-31-2008, 05:07 PM
#4
cohadar
Quote:
Originally Posted by
Alexander244
IsUnitType
(
u
,
UNIT_TYPE_ETHEREAL
)
Does this work for banished units?
05-31-2008, 05:22 PM
#5
Alexander244
yes