/declare PwrSrc string local Luclinite Defender Source
/if (${Bool[${Me.Inventory[powersource]}]} && ${Me.Inventory[powersource].PctPower}<3 && !${Cursor.ID}) {
/itemnotify powersource leftmouseup
/delay 1s ${Cursor.ID}
/if (${Cursor.Name.Equal[${PwrSrc}]}) {
/destroy
}
/echo \atPwrSrc: \arDestroyed
}
/if (${FindItemCount[${PwrSrc}]}>0) {
/if (!${Bool[${Me.Inventory[powersource]}]} && !${Me.Casting.ID} && !${Cursor.ID}) {
/itemnotify "${PwrSrc}" leftmouseup
/delay 1s ${Cursor.ID}
/itemnotify powersource leftmouseup
/while (${Window[ConfirmationDialogBox].Open} && ${Cursor.PctPower}>10) {
/yes
/delay 1
}
/echo \atPwrSrc: \agRefreshed
}
}