j0achim
New Member
- Joined
- Jan 15, 2010
- Messages
- 532
- Reaction score
- 15
Hi, im working on a CC but i have gotten stuck on two things, however over to the question at hand.
StyxWoW.Me.HasAura("Surge of Light") returns a false positive.
As soon as WoWUnit goes below 85% it thinks this code is valid even tho i don't have the aura "Surge of Light", anyone have any suggestions?
My other problem is casting "Holy Word: Serenity", if i get the spell by id it works however since i am writing it in singular i cant add it by id when using Spell.Heal as it only works with string variables.
All input is very much appreciated
StyxWoW.Me.HasAura("Surge of Light") returns a false positive.
PHP:
Spell.Heal("Flash Heal", ret => (WoWUnit)ret, ret => StyxWoW.Me.HasAura("Surge of Light") && ((WoWUnit)ret).HealthPercent <= 85),
As soon as WoWUnit goes below 85% it thinks this code is valid even tho i don't have the aura "Surge of Light", anyone have any suggestions?
My other problem is casting "Holy Word: Serenity", if i get the spell by id it works however since i am writing it in singular i cant add it by id when using Spell.Heal as it only works with string variables.
PHP:
Spell.Heal("Holy Word: Serenity", ret => (WoWUnit)ret, ret => ((WoWUnit)ret).HealthPercent <= 64),
All input is very much appreciated
