Skill (passive) - Deeper Bite
everytime it attacks the same target it is healed for 5xtimes attacked
example:
unit with deeper bite ATTACKS unit A,
it recover 5 hp
unit with deeper bite ATTACKS unit A again for the 2nd time,
it recovers 10 hp now
and so on...
but as soon as the unit changes target to unit B
it only recover 5 hp on the 1st atk, 10 hp on next n so on
the only problem i hv is how do i detect whether the attacked unit is the same unit?
everytime it attacks the same target it is healed for 5xtimes attacked
example:
unit with deeper bite ATTACKS unit A,
it recover 5 hp
unit with deeper bite ATTACKS unit A again for the 2nd time,
it recovers 10 hp now
and so on...
but as soon as the unit changes target to unit B
it only recover 5 hp on the 1st atk, 10 hp on next n so on
the only problem i hv is how do i detect whether the attacked unit is the same unit?