All pastes #386705 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-08 20:58 UTC
rendered paste body
member NeedHealing()
	{
		;How many we have aggroed determines how much we need healing
		Aggros:Search[-units,-nearest,-aggro,-alive,-range 0-40]
		if ${This.HaveHealShiftMana}
		{
			if ${Aggros.Count} > 1
			{
				if ${Me.PctHPs} <= 50
				{
					if ${Target.PctHPs} > 10 && ${Me.PctHPs} <= 40
					{
						return TRUE
					}
					elseif ${Target.PctHPs} > 30
					{
						return TRUE
					}
					elseif ${Aggros.Count} > 2
					{
						return TRUE
					}
				}
			}
			elseif ${Me.PctHPs} <= 30
			{
				if ${Me.PctHPs} <= 20
				{
					return TRUE
				}
				elseif ${Target.PctHPs} > 15
				{
					return TRUE
				}
			}
		}
		return FALSE
	}