• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Spell] Critical Strike Question

Status
Not open for further replies.
Level 7
Joined
Mar 6, 2014
Messages
203
Is there a way to reduce critical strike rate?
Ex. Enemy hero has a Critical Strike rate of 150% if the enemy attack my hero and do a critical strike I'll receive 80% of the the critical strike rate instead of 150%.

Is there a way to do that??
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
You need a DDS.

If an enemy with critical strike is attacking a unit

Roll a number from 1 to 100. If for example the chance for critical strike is 25% If the rolled number is less than or equal to 25. A critical strike "happened"

Then check to see what the unit is attacking.

If it is a hero adjust the damage accordingly. damage * .8

Otherwise it will be damage * 1.5
 
Status
Not open for further replies.
Top