Hi guys.
Yesterday I decided to make a custom ability which I though would be the simplest trigger enhanced spell I've ever made. Instead I ended up with this thing that deals no damage at all, except the decaying damage that the dummy spell already has. Below is the trigger anyway.
Yesterday I decided to make a custom ability which I though would be the simplest trigger enhanced spell I've ever made. Instead I ended up with this thing that deals no damage at all, except the decaying damage that the dummy spell already has. Below is the trigger anyway.
Code:
Crippling Blow
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Crippling Blow
Actions
Set tempInt[1] = (Level of Crippling Blow for (Casting unit))
Set tempInt[2] = (tempInt[1] x (10 + ((Intelligence of (Casting unit) (Include bonuses)) x (Integer(0.90)))))
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (Real(tempInt[2])) damage of attack type Chaos and damage type Death