- Joined
- Oct 29, 2007
- Messages
- 15
So baically the spell does this:
5% chance when attacking an enemy unit to increase the hero's strength by Level of Ability*Current hero strength for 10 seconds.
The problem is, getting the hero's strength to go back to what it was before the added strength.
Here's what i have so far
Anyway the problem seems to be that AMCasterStartStr isn't retaining the STR before its added, but rather after its added which results usually in an extra large amount of str permanently.
Fixed on my own, thanks for the tip, it was a really stupid mistake but i haven't slept in over a day
5% chance when attacking an enemy unit to increase the hero's strength by Level of Ability*Current hero strength for 10 seconds.
The problem is, getting the hero's strength to go back to what it was before the added strength.
Here's what i have so far
- Events
- Unit - A unit is attacked
- Conditions
- (Level of Abomination's Might for (Attacking unit)) Greater than or equal to 1
- Actions
- Set AmCasterStartStr = (Strength of AMCaster (Exclude bonuses))
- Set AMCaster = (Attacking Unit)
- if (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Chance less than or equal to 5
- Then - Actions
- Hero - Modify Strength of AMCaster: Add ((Strength of AMCaster (Exclude bonuses)) x (Level of Abomination's Might for AMCaster))
- Trigger - Turn on Abomination's Might Cooldown <gen>
- Trigger - Turn off (This trigger)
- Else - Actions
- Do nothing
Anyway the problem seems to be that AMCasterStartStr isn't retaining the STR before its added, but rather after its added which results usually in an extra large amount of str permanently.
Fixed on my own, thanks for the tip, it was a really stupid mistake but i haven't slept in over a day
Last edited: