| 01-07-2007, 03:55 PM | #1 |
Hi everybody ! Well, today have I decided to begin using the caster system ^_^. As I work with GUI since a long time, and JASS for a shorter time, I understood well. (at least I think :p ). So I wanted to make my first spell, rly basic : a spell that cast shadowstrike to all enemy units in an area around the caster. So here is my code : JASS:local location loc =GetUnitLoc(GetTriggerUnit()) local unit u =GetTriggerUnit() local integer l local real area set l = GetUnitAbilityLevel( u,'A019') set area = 100.0 + l*100.0 call CasterCastAbilityLevelAOELoc( GetOwningPlayer(u), 'A01A', l ,"shadowstrike", loc, area, false, true) call RemoveLocation(loc) set loc=null set u=null It's a little copied from Levelable Mass Slow, but changed all the values I think. Well the spell "works". I mean it is launched on all the units around the caster. The problem is that it's launched a thousand times, making all units around the caster to die. (I saw it was casted lots of times putting a unit with 5 000 000 hp, and I saw that his life downed rly quickly). What's the problem ? Why is it casted so many times ? Thanks in advance ^_^. RaptorTeak. (and sorry for my engilsh btw >.<) |
| 01-07-2007, 04:08 PM | #2 |
its most likely your shadow strike settings on the Object manager. For some reason, the casting time is the wait between the damage. For example, if you set the casting time as 0.01, itll do # of damage every 0.01 seconds |
| 01-07-2007, 04:12 PM | #3 |
Ohhh ok. That's it... I put 0.00s in order to have an instant cast, then i'm gonna put it back to 3 ^^ . Thank you very much. |
