| 07-05-2008, 06:30 AM | #1 |
do locust units benefit from auras? |
| 07-05-2008, 09:05 AM | #2 |
No, they don't. |
| 07-05-2008, 09:33 AM | #3 |
fucking dammit, how bout something like immolation, can they get any buffs or debuffs from other units, couse i really need to detect when a locust unit has a buff or debuff |
| 07-05-2008, 10:13 AM | #4 |
It seems that standard auras use enumerating units in range, that doesn't touch 'Aloc' units. So I think the only way is to customize it with jass: JASS:scope BuffOnDummy globals private group gr = CreateGroup() private timer tm = CreateTimer() private filterfunc bx = null private integer dummy_id = 'h000' private real tm_period = 1. endglobals private function f_func takes nothing returns boolean if GetUnitTypeId(GetFilterUnit()) == dummy_id then // check the distance // and do required actions (add/remove abilities, etc.) endif return false endfunction private function OnTimer takes nothing returns nothing call GroupEnumUnitsOfPlayer(gr, Player(0x00), bx) endfunction public function InitTrig takes nothing returns nothing set bx = Filter(function f_func) call TimerStart(tm, tm_period, true, function OnTimer) endfunction endscope |
| 07-05-2008, 10:44 AM | #5 |
Locust basically buggers with just about everything. Use it only when you want something to be completely and totally invisible to almost all forms of interaction with everything, or if you want to use the locust bug. |
