| 01-15-2008, 06:11 AM | #1 |
I did some searches I found nothing on this issue. It seems that this spell has no order ID. I found this out when I was trying to check if a unit is casting it.. JASS:if GetUnitCurrentOrder(u) == OrderId("deathanddecay") then Does not seem to work. Just to make sure I tried to check its current order while casting. JASS:call BJDebugMsg(I2S(GetUnitCurrentOrder(u))) And it displays 0 as if it's doing nothing. This is a bummer considering it would be perfect for an area channeling spell. Is this a bug or did I do something wrong? And if all this is really true what would be a good alternative spell to use? |
| 01-15-2008, 07:03 AM | #2 |
Hello, Well, I do know of an alternative spell. You could try using Monsoon, maybe that'll work. By the way, are you sure you need to detect if a unit is casting Death and Decay using an order string? You could also use the available ability events. Maybe even attach a boolean to the caster so you can check it any moment. |
| 01-15-2008, 07:21 AM | #3 |
Hmm... I had a similar bug like this but I'm not sure if it was with Death and Decay or not. Anyways, try doing this and see if it doesn't work: JASS:if OrderId2String(GetUnitCurrentOrder(u)) == "deathanddecay" then Though you said that doing I2S(GetUnitCurrentOrder(u)) displays 0 which is very strange. Try doing this: JASS:call BJDebugMsg(OrderId2String(GetUnitCurrentOrder(u))) What does that display? |
| 01-15-2008, 08:05 AM | #4 |
why not use this? JASS:if GetSpellAbilityId() == OrderId("deathanddecay") then |
| 01-15-2008, 09:38 AM | #5 |
i know three special order. when an unit dead, is remove (RemoveUnit or end of decay), or die, or the ability is remove, but not if the if the unit decay she got these orders : "undefend", "magicundefense" et "unflamingarrows". If the unit has an ability with this order, even if the ability is not available for the player, the unit got the order. Remove unit or remove the ability : she got two time the order |
