Sub RangerDebuff2
/declare currentTargetID int local
/declare TargetBuffNum int local
/if (${Me.AltAbilityReady[Entropy of Nature]} && (${Target.Distance}<50) && ${Target.Type.Equal[NPC]} && (${Target.PctHPs}<100)) {
/varset currentTargetID ${Target.ID}
/for TargetBuffNum 1 to 42 {
| If we've somehow switched targets, abort checking the npc's buff list.
/if (${Target.ID} != ${currentTargetID}) /return
/if (${Target.Buff[${TargetBuffNum}].SpellType.NotEqual[Beneficial]} || (${Target.Buff[${TargetBuffNum}].ID}==NULL)) {
/next TargetBuffNum
} else {
/bct ${bcchannel} Dispelling *${Target.Buff[${TargetBuffNum}].Name}* [${Target.Buff[${TargetBuffNum}].SpellType}] with Entropy of Nature
/alt act 682
/delay 5
}
}
}
/return