HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Xecast obj not working?

03-13-2009, 01:44 AM#1
Blackroot
Hey there; I'm having a slight problem with a spell. It's not firing the dummy ability correctly; for which I'm using xecast to do it. Everything else works great

[updated]
Expand JASS:

Full code. Most of the actual workings have been exported to other libraries; such as PTC. I know the code works and fires however; it's just the xecast object that's not working correctly.

The ability is based off of slow; I have the correct cast Id and ability name; so I'm quite confused as to why it doesn't work.

Also; I feel like I'm leaking something here. I've looked it over and I havn't seen one, but I'm fairly sure I'm forgetting something =x?

Expand JASS:

Anyone see any errors? Thanks.
03-13-2009, 01:57 AM#2
akolyt0r
cant see any errors at a first glance ..
are you sure that there are indeed units in the damagegroup ?
03-13-2009, 02:03 AM#3
Blackroot
Quote:
Originally Posted by akolyt0r
cant see any errors at a first glance ..
are you sure that there are indeed units in the damagegroup ?

They turn red and take damage; there's definantly units.
03-13-2009, 03:16 AM#4
akolyt0r
has the dummy unit constant (XE_DUMMY_UNITID) of xebasic correct ?
03-13-2009, 05:48 AM#5
Blackroot
Quote:
Originally Posted by akolyt0r
has the dummy unit constant (XE_DUMMY_UNITID) of xebasic correct ?

Yes. I got it sort of working; but it hits only 1 unit. I updated the code.
03-13-2009, 07:23 AM#6
Tyrande_ma3x
> I got it sort of working; but it hits only 1 unit.
Had such problem some time ago, though I'm not sure if it's it - only several abilities such as Slow could be casted from one unit in a FirstOfGroup loop, other spells were casted just once.
03-13-2009, 09:09 AM#7
akolyt0r
dunno...
you could try giving that dummy unit a turn speed of 999999999 ...(something like that, you get the idea ..will require a shift-click) and a cast-backswing of 0.00

And maybe check again if your slow spell:
- has no cooldown
- has no cast time
- has no mana cost
03-13-2009, 02:23 PM#8
peq
Try
Collapse JASS:
set dummycast.recycledelay = 1.0
03-13-2009, 02:58 PM#9
Vexorian
hmnn slow is supposed to be instant, wonder if recycledelay would work.

You shouldn't hard code the order id, it is working as a magic constant in your code, better make a constant for it, it is a good habit.

It could be a bug with xecast. Something I noticed about slow is that it will not work if the unit already has the bug, also, have you set its mana cost and cooldown to 0?
03-14-2009, 12:30 AM#10
Blackroot
Quote:
Originally Posted by peq
Try
Collapse JASS:
set dummycast.recycledelay = 1.0

Winner! Works like a charm; thanks! +rep.
03-14-2009, 01:21 AM#11
Vexorian
Blackroot, does your slow cost 0.0 mana and cooldown?
Xecast obj not working? - Wc3C.net