so if the player is no scribe (has no spell in his spellbook with the spellid 51005) then i will use the item 114942 (draenic mortar). this doesn't work. the line 23 will not run. there is no lua error. if i run this function via macro ingame it will work but not through the minimapbutton.
later i will add a lookup for the draenic mortar in the players bag to prevent errors if the item is not present in the players bag.