Xialian
Member
- Reaction score
- 8
Hey there. Got a little problem with a unit, who attacks. He attacks, and then a trigger is supposed to go +1 and level up an ability he has. Now, the problem is that this doesn't seem to happen. The trigger I'm using is as follows:
Any suggestions to why it doesn't work?
Trigger:
- Essence of Magic build
- Events
- Unit - A unit Is attacked
- Conditions
- (Owner of (Attacked unit)) Equal to Player 7 (Green)
- (Attacking unit) Equal to HyperAssassin
- Actions
- Set HASpellPower = (Intelligence of HyperAssassin (Include bonuses))
- If (EssenceOfMagicCOUNT Equal to 3) then do (Unit - Cause HyperAssassin to damage (Attacked unit), dealing ((Real(SpellPower)) x 0.50) damage of attack type Chaos and damage type Universal) else do (Do nothing)
- If (EssenceOfMagicCOUNT Equal to 4) then do (Set EssenceOfMagicCOUNT = 1) else do (Do nothing)
- Set EssenceOfMagicCOUNT = (EssenceOfMagicCOUNT + 1)
- Unit - Set level of Essence of Magic for HyperAssassin to EssenceOfMagicCOUNT
- Events
Any suggestions to why it doesn't work?