robinremue
Member
- Reaction score
- 16
I want the damage of an ability depend on Intelligence, I tried this but It didn't work, help Plz
Code:
Attribute Dmage
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Not equal to Spirit Bomb
Actions
Set KameDamReal = ((Real((Intelligence of (Triggering unit) (Exclude bonuses)))) x (((Real((Level of (Ability being cast) for (Triggering unit)))) x 2.00) + 100.00))
Set TempPointDam = (Units within 300.00 of (Target point of ability being cast))
Unit - Create 1 Attack Dummy for Neutral Passive at (Position of (Targeted unit)) facing Default building facing (270.0) degrees
Unit Group - Pick every unit in TempPointDam and do (Actions)
Loop - Actions
Unit - Order (Last created unit) to damage (Picked unit) for KameDamReal using attack type Normal and damage type Normal.