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

Spell Category, check for harmful spells

eniac

Member
Joined
Jul 22, 2010
Messages
107
Reaction score
2
Hi i'm trying to modificate the ensemble warrior class for my needs.
I want it to use Spell Reflection when my oponent is casting a harmfull spell.
I'd like to know if it is possible to check for harmful spells by using

Me.CurrentTarget.CastingSpell.Category

and which category/ies I would have to check for.

thanks in anticipation
eniac
 
Hi i'm trying to modificate the ensemble warrior class for my needs.
I want it to use Spell Reflection when my oponent is casting a harmfull spell.
I'd like to know if it is possible to check for harmful spells by using

Me.CurrentTarget.CastingSpell.Category

and which category/ies I would have to check for.

thanks in anticipation
eniac
i dont know because as far as i can tell no one has done it before. the only thing i can really suggest doing is checking for CurrentTarget.IsCasting (i think thats what its called.) and just have it take its chances.
 
I took a quick look at the API and think this might offer something similar to what you're looking for. You'll need to look through the full effect list and dig out the things you actually want to check though, it's an enum though so it's all there on intellisense. I've no idea about Category so found this instead.

Code:
            bool hasHarmfulEffect = Me.CurrentTarget.CastingSpell.SpellEffects
                                      .Any(x => x.EffectType == WoWSpellEffectType.Attack ||
                                                x.EffectType == WoWSpellEffectType.AttackMe);

-Alpha
 
Last edited:
Back
Top