private static method Cond takes nothing returns boolean
return GetIssuedOrderId() == OrderId("move") or GetIssuedOrderId() == OrderId("smart") or GetIssuedOrderId() == OrderId("patrol") or GetIssuedOrderId() == OrderId("attack") and IsUnitInGroup(GetTriggerUnit(), Casters)
endmethod
private static method Cond takes nothing returns boolean
local integer id = GetIssuedOrderId()
return id == OrderId("move") or id == OrderId("smart") or id == OrderId("patrol") or id == OrderId("attack") and IsUnitInGroup(GetTriggerUnit(), Casters)
endmethod
JASS:private static method Cond takes nothing returns boolean return GetIssuedOrderId() == OrderId("move") or GetIssuedOrderId() == OrderId("smart") or GetIssuedOrderId() == OrderId("patrol") or GetIssuedOrderId() == OrderId("attack") and IsUnitInGroup(GetTriggerUnit(), Casters) endmethod
-->
JASS:private static method Cond takes nothing returns boolean local integer id = GetIssuedOrderId() return id == OrderId("move") or id == OrderId("smart") or id == OrderId("patrol") or id == OrderId("attack") and IsUnitInGroup(GetTriggerUnit(), Casters) endmethod
Awesome.
I know. Just make the duration shorter than the cooldown, or the cooldown longer than the duration (Yes, they're the same thing).Awesome spell, very original (never seen a spell like this before) and fun to use. +rep. However, when I use it when already rolling it gets fucked up, harder to controll and the roll unit will be the normal panda. Try to use it when already rolling to see what I mean.
I know. Just make the duration shorter than the cooldown, or the cooldown longer than the duration (Yes, they're the same thing).
Thanks anyway
Then Disable the ability when it's cast, wait the duration, and re-enable it after.
I don't think it's necessary to make a new trigger just for that
Thanks!Awsome job Romek, I'm still a newbie at making spells, but i hope i will be one day as good as you, i'm still making primitive spells with GUI, i just can't seem to learn JASS and I've read almost all of the tutorials, but you know what they say, when you fall off a horse, you gotta go right back on it
Five stars man!
boolexpr bool
call GroupRemoveUnit(a.G, u)
call GroupClear(a.G)
That's really odd. I'm sure there was a use for it somewhere, at some time.JASS:boolexpr bool
Ahm... where exactly is that boolexpr being used (it's the one in the struct) - I can't seem to find it, so I'm beginning to suspect it's a bit useless
Made the groups static .And why exactly do you bother with a group member for the TimedEffect struct? You could just use a global group (it is only a temporary group) since there's no requirement to keep track of units for the duration of the instance
Same applies to the group member of the spell struct, it appears to be used in same way, so global group would easily work just fine instead
I agree. I don't know why I put that there either.. :nuts:And!
JASS:call GroupRemoveUnit(a.G, u) call GroupClear(a.G)
That's a bit pointless, don't you think? The group is going to be emptied as a result of the FirstOfGroup loop, so why bother clearing it after when it's already empty?
Excellently coded and carried through spell!
You make the Pandaren proud!
Resource approved, for the Pandaren!
awesome spell, but... it works on 1.24 ??
Update ABC.