channel and buffs

LearningCode

New Member
Reaction score
24
The base ability "channel" has a field "buffs"
I modified the "buffs" field to something

Unfortunately, when I cast "channel", I do not receive the buff, even with the targets allowed set to self.

How would I go about this?
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
you cant.

channel does not support buffs. use some other ability like acid bomb, berserk, whatever you want.
 

LearningCode

New Member
Reaction score
24
It has to be a channeling-type spell =/
Need it for a trigger.

Hero channels spell (No target) (20seconds max)
Any enemy that enters within a certain range of the channeling hero gets shackled (5seconds max)
Enemy units can only be shackled once per cast

if the hero moves, gets stunned or dies (AKA, stops channleing), the spell's effect ends.



So, someone recommended I use buff-detection, when unit does not have buff, end spell.

What base spell do I use if not channel? o.0
I can't think xD
 

watermelon

New Member
Reaction score
2
Use Starfall or Tranquility.
To detect whether or not the caster is still casting the spell use this condition periodically:
JASS:
GetUnitCurrentOrder(YourCaster) == OrderId(SpellOrder)

GUI equivalent:
Trigger:
  • (Current order of (YourCaster)) Equal to (Order(SpellOrder))
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
how about the channeling ability of the Keeper of the Grove (sorry but i forgot its name).

its healing all surrounding targets and gives a buff. you can easily decide whether only the caster, enemys, allies, or whatever units you get the buff or not.
 

watermelon

New Member
Reaction score
2
Oh yeah, you could use Channel for that too, sorry. XD

Yeah, Starfall and Tranquility are channeling spells.
The upside/downside to using Starfall and Tranquility over Channel is that the computer AI will be able cast the spell.
 

LearningCode

New Member
Reaction score
24
oo..

Thanks for the heads-up =)
I learned something new xD
[lJASS]
GetUnitCurrentOrder(YourCaster) == OrderId(SpellOrder)[/lJASS]

I would never, in a billion years, think of this =x
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top