All pastes #385981 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-08 07:04 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 ${Me.PctHPs} <= 20 && ${This.HaveHealShiftMana}
			return TRUE
		if ${Me.PctHPs} <= 30 && ${This.HaveHealShiftMana} && ${Aggros.Count} == 1 && ${Target.PctHPs} > 15
			return TRUE
		if ${Me.PctHPs} <= 40 && ${This.HaveHealShiftMana} && ${Aggros.Count} > 1 && ${Target.PctHPs} > 10
			return TRUE
		if ${Me.PctHps} <= 50 && ${This.HaveHealShiftMana} && ${Aggros.Count} > 1 && ${Target.PctHPs} > 30
			return TRUE
		if ${This.HaveHealShiftMana} && ${Healing}
			return TRUE
		
		return FALSE
	}