- Joined
- Oct 19, 2014
- Messages
- 187
Im sick of this,, Is there anyway to use widget for unit's arguments or anything that settable for unit.. Grrrrr...
I was dreaming for this grrr
because I hook the native UnitDamageTarget but at the end,, it was fcking useless,, I was expecting that the target is still a unit.
I was dreaming for this grrr
JASS:
private function W2U takes widget u returns unit
return u
endfunction
because I hook the native UnitDamageTarget but at the end,, it was fcking useless,, I was expecting that the target is still a unit.
JASS:
private function dt takes unit u1,widget u2,real r,boolean b1,boolean b2,attacktype a,damagetype d,weapontype w returns nothing
if r>0 then
set EventAttackType=a
set EventCustomDamage=true
endif
endfunction
hook UnitDamageTarget dt
Last edited: