Title is confusing, but here we go.
So I have this item on my hero that gives him the passive ability "Hardened Skin" that has a 20% chance of proccing and reducing all damage done to him by 100%--so basically, it blocks the attack. The ability is, as was said, attached to the item itself, NOT the hero.
I have this trigger system that detects damage from the back of the unit in a 180-degree angle, dealing the original damage of the unit to the hero if the attacking unit hurts them from behind.
Problem is, because Hardened Skin is attached to the item itself, it sometimes procs even if the attacking unit is hitting my hero from the back, negating all the damage.
I'm requesting that if the hero is attacked from the back, that hardened skin cannot proc whatsoever. Otherwise, everywhere else is good.
My only idea of how to achieve this is to replace the current item with a replica that just doesn't have the Hardened Skin ability attached to it when the unit is attacked, although I have no idea how to implement that smoothly, as well as not knowing if that is the only/right solution.
So I have this item on my hero that gives him the passive ability "Hardened Skin" that has a 20% chance of proccing and reducing all damage done to him by 100%--so basically, it blocks the attack. The ability is, as was said, attached to the item itself, NOT the hero.
I have this trigger system that detects damage from the back of the unit in a 180-degree angle, dealing the original damage of the unit to the hero if the attacking unit hurts them from behind.

Problem is, because Hardened Skin is attached to the item itself, it sometimes procs even if the attacking unit is hitting my hero from the back, negating all the damage.
I'm requesting that if the hero is attacked from the back, that hardened skin cannot proc whatsoever. Otherwise, everywhere else is good.
My only idea of how to achieve this is to replace the current item with a replica that just doesn't have the Hardened Skin ability attached to it when the unit is attacked, although I have no idea how to implement that smoothly, as well as not knowing if that is the only/right solution.