ive made this dummy unit a cloud that follows heroes im trying to make it so when the hero attack a unit the cloud zaps the same unit. can anyone help me plz.
level of ( that good ol cloud summoning thing ) for attacking unit > 0
Custom Script: set bj_wantDestroyGroup = true
pick every unit in Units owned by owner of Attacking Unit matching unit type of matching unit equal to cloud and Order Picked Unit to attack Triggering Unit
NOTE: this will only work for maps where each player will have 1 unit summoning clouds. to do otherwhise efficiently requires complicated *JASS* methods of data storage