You use damage detection system (dds) and null damage taken by unit. Additionally you show "Miss" via floating text.
In your case, you would make trigger that fires a DDS event "unit takes damage" and check if the damaged unit as well as damager are of certain unit types. If yes, null damage taken.
How can you null a damage? By increasing the hp with the exact amount of the damage taken? what if the damaged unit has full hp? The nulling will not work.
I recommend getting to know this system. It might answer your question.
I used a simple damage detection system using the Event, a unit is damaged so i do not understand how the DDS with variables in the event work. Can you just tell me how if its not too complicated explaining here?
But by the looks of it, it looks like the system can change the damage the unit will take thus setting PDD_amount to zero does not damage the unit while setting it to -50 heals the unit and does not damaged it.
Essentially the system does 3 things:
*Creates a "unit takes damage" event for every unit
*Gives each unit a 200% magic damage reduction ability, making spell damage always be negative. This makes it possible to know if damage was from a basic attack(or cleave) or if it was a spell(or poison).
*Whenever a unit takes damage and the damage is modified, gives it an ability that increases max health by a lot. This avoids any possible problems with the unit dying before the health change applies.
After those steps it checks if the damage amount was changed. Since the system remembers how much health the unit had right before taking damage, then it can set it to the right value afterwards.
just use one of many DDS systems here on hive, you cant get anything better than that, yet