Someone
public text v1 · immutable method CheckForDebuffs()
{
variable int Index = 1
do
{
if !${Me.Buff[${Index}](exists)}
{
break
}
if ${Me.Buff[${Index}].DispelType.Equal[Poison]}
{
Toon:CastSpell[Cure Poison]
This:Output["Curing Poison"]
}
if ${Me.Buff[${Index}].DispelType.Equal[Disease]}
{
Toon:CastSpell[Cure Disease]
This:Output["Curing Disease"]
}
Index:Inc
}
while ${Index} <= 10
}