- Joined
- Apr 27, 2008
- Messages
- 2,455
Guys, let's do one line then :
But will this work only for default human and undead structures ?
What about custom ones and the other races like night elves ?
JASS:
function IsBuildingUnderConstruction takes unit u returns boolean
return IsUnitType(u,UNIT_TYPE_UNDEAD) and (GetUnitAbilityLevel(u,'Abgs')!= 0 or GetUnitAbilityLevel(u,'Abgl')!= 0) or GetUnitAbilityLevel(u,'Abds')!= 0 or GetUnitAbilityLevel(u,'Abdl')!= 0
endfunction
What about custom ones and the other races like night elves ?