Hi guys, after trying so many ideas for my maps. I came to think that I should make a new chance for Evasion ability. Which are determined by the difference between the attacking unit's agility and the attacked unit's agility. I have a though that the main foundations would be:
- The Evasion Ability with 100% chance
- Adding the Evasion Ability when the difference between Agility in random integer between 1 to 100 is met
- Same as the second one, but instead of adding the Evasion ability we create a dummy unit which will cast something like Cloud Spell to make the attacking unit miss the attack.
- How do we detect the contact between the attacking unit and the attacked unit if the attack is miss?
- Which one is better between point 2 and point 3?
- If we create one dummy unit to cast Miss-Based spell, will the dummy cast the spell to every unit that attack us? Assuming the 2 or more units are attacking at the same time.
- I'm still a little confused to order the dummy to cast certain type of spell to certain type of unit (like only to hero owned by player 1).