[Script] Cast Evasion on Target

You can use any spell that leaves a buff on an unit, then trigger it with something simple like this (at least for 1.31+)

  • Evasion
    • Events
      • Unit - A unit About to take damage
    • Conditions
      • ((Triggering unit) has buff Evasion Spell) Equal to True
      • (Damage From Normal Attack) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random real number between 0.00 and 100.00) Less than or equal to YourEvasionChances
        • Then - Actions
          • Event Response - Set Damage of Unit Damaged Event to 0.00
          • Floating Text - Create floating text that reads |c00FF2222miss|r above (Damage source) with Z offset 0.00, using font size 9.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
          • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
          • Floating Text - Change (Last created floating text): Disable permanence
          • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
        • Else - Actions
 
Back
Top