• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] [Spell] Stat remove problems

Status
Not open for further replies.
Level 13
Joined
Mar 16, 2008
Messages
941
[SOLVED]
Set the globals struct also when destroying it, dumbass >.<

So, I got a "small" problem with a spell of mine.
It is a totem, that triggers every 3 seconds, healing all allys by the intelligence of the caster of it, that's no problem at all.
The second part of the trigger should add stats to the healed units for 15 seconds. That means the bonus can stack 5 times.
I know that my trigger isn't MUI, but MPI is enough in this case and I'm to bored to add a second struct for the totems.
My problem: the bonus is applied 5 times, then the first is removed and that's it.
No mather if I'm near the totem or far away, no new bonuses are applied and no bonuses are removed.
For example my hero is 10, then the bonus is 2 per stack.
5 Stacks, so 10 stats are added, 2 removed and then nothing more happens.
The Hive Workshop - A Warcraft III Modding Site

I just can't find the mistake ._.
Oh btw, if someone has a better idea for doing this, just tell me ;)

Greets, Justify
 
Last edited:
Status
Not open for further replies.
Top