View Single Post
Old 04-16-2012, 07:52 AM   #5 (permalink)
Registered User Ruke
( > *_*)>
Ruke's Avatar
Join Date: Sep 2011
Posts: 339
Ruke is on a distinguished road (75)Ruke is on a distinguished road (75)
udg_DamageTypeDOT > 0 and IsUnitEnemy(a,GetOwningPlayer(t)) and GetUnitAbilityLevel(a,MA_HeroAbility()) > 0 and not IsUnitType(t,UNIT_TYPE_DEAD) and not IsUnitType(t,UNIT_TYPE_STRUCTURE) and not IsUnitType(t,UNIT_TYPE_MAGIC_IMMUNE)

Mmm, I think that this filter should be configurable.

Instead of using UserData, you can use hashtables :). In some maps, the people use IndexUnit (bad choise by the way) and this can result in a bug.

In the ability's preload:

call UnitApplyTimedLife(u,'BTLF',0.5)

You don't need these, just remove it >:).

Good job ;).

Ruke is online now   Reply With Quote