All pastes #585040 Raw Edit

Someone

public text v1 · immutable
·published 2007-06-23 00:56 UTC
rendered paste body
	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
	}