hi guys, i have a problem i made a spell which calculates the original ability damage, then adds % bonus damage, then checks if crit or not.
But the spell dont do any damage not even 0,
anybody there who can tell me what i did wrong?
Thanks in advantage
Heres the trigger
Deadly Strike
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Deadly Strike
Actions
Set DeadlyStrikeCaster = (Triggering unit)
Set DeadlyStrikeSingleTarget = (Target unit of ability being cast)
Set DeadlyStrikeTarget = (Position of (Target unit of ability being cast))
Set DeadlyStrikeEnemies = (Units within 500.00 of DeadlyStrikeTarget matching ((((Matching unit) is A Hero) Not equal to True) and ((((Matching unit) is Ethereal) Not equal to True) and ((((Matching unit) is dead) Not equal to True) and (((Matching unit) belongs to an enemy of (Owner
Special Effect - Create a special effect at DeadlyStrikeTarget using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-------- Calculate Spell Damage Multiplier --------
Set SpellDamageMultiplier = 3
-------- Calculate Spell Damage --------
Set DeadlyStrikeDamage = ((Integer((Real((Strength of DeadlyStrikeCaster (Include bonuses)))))) x SpellDamageMultiplier)
-------- Calculate Spell Damage Bonus --------
Set FinalDmg_SpellBonus = 20
Unit Group - Pick every unit in DeadlyStrikeEnemies and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to CritChance[(Player number of (Owner of DeadlyStrikeCaster))]
Then - Actions
Set FinalDmg1 = (DeadlyStrikeDamage / 100)
Set FinalDmg2 = (100 + FinalDmg_SpellBonus)
Set FinalDmg3 = (FinalDmg1 x FinalDmg2)
Set FinalDmg4 = (FinalDmg3 x 2)
Unit - Cause DeadlyStrikeCaster to damage (Picked unit), dealing (Real(FinalDmg4)) damage of attack type Normal and damage type Normal
Else - Actions
Set FinalDmg1 = (DeadlyStrikeDamage / 100)
Set FinalDmg2 = (100 + FinalDmg_SpellBonus)
Set FinalDmg3 = (FinalDmg1 x FinalDmg2)
Set DamageConvert = (Real(FinalDmg3))
Unit - Cause DeadlyStrikeCaster to damage (Picked unit), dealing DamageConvert damage of attack type Normal and damage type Normal
But the spell dont do any damage not even 0,
anybody there who can tell me what i did wrong?
Thanks in advantage

Heres the trigger
Deadly Strike
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Deadly Strike
Actions
Set DeadlyStrikeCaster = (Triggering unit)
Set DeadlyStrikeSingleTarget = (Target unit of ability being cast)
Set DeadlyStrikeTarget = (Position of (Target unit of ability being cast))
Set DeadlyStrikeEnemies = (Units within 500.00 of DeadlyStrikeTarget matching ((((Matching unit) is A Hero) Not equal to True) and ((((Matching unit) is Ethereal) Not equal to True) and ((((Matching unit) is dead) Not equal to True) and (((Matching unit) belongs to an enemy of (Owner
Special Effect - Create a special effect at DeadlyStrikeTarget using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-------- Calculate Spell Damage Multiplier --------
Set SpellDamageMultiplier = 3
-------- Calculate Spell Damage --------
Set DeadlyStrikeDamage = ((Integer((Real((Strength of DeadlyStrikeCaster (Include bonuses)))))) x SpellDamageMultiplier)
-------- Calculate Spell Damage Bonus --------
Set FinalDmg_SpellBonus = 20
Unit Group - Pick every unit in DeadlyStrikeEnemies and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to CritChance[(Player number of (Owner of DeadlyStrikeCaster))]
Then - Actions
Set FinalDmg1 = (DeadlyStrikeDamage / 100)
Set FinalDmg2 = (100 + FinalDmg_SpellBonus)
Set FinalDmg3 = (FinalDmg1 x FinalDmg2)
Set FinalDmg4 = (FinalDmg3 x 2)
Unit - Cause DeadlyStrikeCaster to damage (Picked unit), dealing (Real(FinalDmg4)) damage of attack type Normal and damage type Normal
Else - Actions
Set FinalDmg1 = (DeadlyStrikeDamage / 100)
Set FinalDmg2 = (100 + FinalDmg_SpellBonus)
Set FinalDmg3 = (FinalDmg1 x FinalDmg2)
Set DamageConvert = (Real(FinalDmg3))
Unit - Cause DeadlyStrikeCaster to damage (Picked unit), dealing DamageConvert damage of attack type Normal and damage type Normal
Last edited: