Hello,i create a skill poison bolt.The skill deal Sppelldmg x1 per second for 3 second but he deal no damage here the trigger:
Code:
Event :
Unit-A unit begin casting a ability
condition :
ability being cast equal to Poison Bolt
Action
Set : Chance = Ramdom real number between 0.00 and 100.00
If Then Else:
If :
Spell Critical Chance Greater than or equal to Chance
Then
Unit - Cause Casting unit to damage Target of ability being cast dealing Spelldmg x2 of attack type spell and damage type poison
Wait 1.00 second
Unit - Cause Casting unit to damage Target of ability being cast dealing Spelldmg x2 of attack type spell and damage type poison
Wait 1.00 second
Unit - Cause Casting unit to damage Target of ability being cast dealing Spelldmg x2 of attack type spell and damage type poison
Else
Unit - Cause Casting unit to damage Target of ability being cast dealing Spelldmg of attack type spell and damage type poison
Wait 1.00 second
Unit - Cause Casting unit to damage Target of ability being cast dealing Spelldmg of attack type spell and damage type poison
Wait 1.00 second
Unit - Cause Casting unit to damage Target of ability being cast dealing Spelldmg of attack type spell and damage type poison