All pastes #979433 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-04-10 11:14 UTC
rendered paste body
	member NeedBuff()
	{
		if (${Me.Equip[mainhand].PctDurability} > 1)
		{		
			if !${Me.Casting} && (${This.WeaponProc.NotEqual[NONE]} && (!${Me.Equip[mainhand].Enchantment[${This.WeaponBuffName}](exists)} || ((${Me.Equip[offhand].SubType.NotEqual[Shield]} && ${Me.Equip[offhand].SubType.NotEqual[Miscellaneous]}) && !${Me.Equip[offhand].Enchantment[${This.WeaponBuffName}](exists)}))
			{
				This:Output["Im missing my weapon buff, do I even own it yet? -- ${This.WeaponBuffName} -- ${This.WeaponProc}"]
				return TRUE
			}
			return FALSE
		}
		
		return FALSE
	}
	
	method BuffPulse()
	{
		Toon:Standup

		if ${Spell[${This.WeaponProc}](exists)}
		{
			if !${Me.Equip[mainhand].Enchantment[${This.WeaponBuffName}](exists)} || ((${Me.Equip[offhand].SubType.NotEqual[Shield]} && ${Me.Equip[offhand].SubType.NotEqual[Miscellaneous]}) && !${Me.Equip[offhand].Enchantment[${This.WeaponBuffName}](exists)})
			{
				Toon:CastSpell[${This.WeaponProc}]
				return
			}
		}
		return
	}