What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Question about Spell Timing

turbocross

New Member
Joined
Mar 23, 2010
Messages
231
Reaction score
0
Hi, if I wanted to use a spell only once during a single combat round (all the way until the mob is killed), how can I use it?

For example: With my Warlock, I'd like to cast weakness on the mob for the first attack, then go into normal routine attack until it is dead.
 
Isdebuffon? Would think something like that, currently at work so can't check. But another way is you could use it as a pull spell.
 
well all CC's have a Pull() and Combat() sections, for what your doing i assume you want to edit your pull section.
 
Seems i've been neglecting this forum.

If you really only want it cast once, use a counter:
Code:
int counter = 0;
Pull(){
counter = 0;
}
Combat(){
if (counter == 0) { SpellManager.CastSpell("somespell"); counter++; }
}
If you just want to cast it when its not on the target, then just do:
Code:
if (!Me.CurrentTarget.Buffs.ContainsKey("some debuff")){ SpellManager.CastSpell("some spell"); }
 
Back
Top