• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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