Now this could be a dumb question but,
I'm making a blocking trigger that goes like the following:
A unit is attacked
If unit has item SHIELD
then silence unit (dummy caster)
then play unit's defend animation
then set charges in SHIELD to -1
then set VARIABLE1 to charges in SHIELD
and another trigger:
A unit is attacked
If unit has item SHIELD
If VARIABLE1 equal to 0
then destroy SHIELD from triggering unit
What im asking is if multiple units will have item SHIELD and are being attacked say one has 20 charges and the other 50 then will they be overwriting each others data in VARIABLE1 ?
I'm making a blocking trigger that goes like the following:
A unit is attacked
If unit has item SHIELD
then silence unit (dummy caster)
then play unit's defend animation
then set charges in SHIELD to -1
then set VARIABLE1 to charges in SHIELD
and another trigger:
A unit is attacked
If unit has item SHIELD
If VARIABLE1 equal to 0
then destroy SHIELD from triggering unit
What im asking is if multiple units will have item SHIELD and are being attacked say one has 20 charges and the other 50 then will they be overwriting each others data in VARIABLE1 ?