Hi hivers,
I've been trying to use the new native functions to dynamically change unit field values.
I've noticed that the code below would not increase base damage of my tower but worse it would make it stop from attacking ever again... (I know this kind of loop function always leak)
I've been trying to use the new native functions to dynamically change unit field values.
I've noticed that the code below would not increase base damage of my tower but worse it would make it stop from attacking ever again... (I know this kind of loop function always leak)
-
Unit Group - Pick every unit in (Units in MapVision <gen> matching (((Unit-type of (Matching unit)) Equal to |cff80ff80Ancient Defender|r) and (((Matching unit) is alive) Equal to Vrai))) and do (Unit - Set Unit: (Picked unit)'s Weapon Integer Field: Attack Damage Base ('ua1b')at Index:0 to Value: ((Base Damage of (Picked unit) for weapon index 0) + 1))
-
Unit - Set Base Damage of (Triggering unit) to ((Base Damage of (Triggering unit) for weapon index 0) + 1) for weapon index: 0