Fix item enchanting and alchemising

This fixes #137
This commit is contained in:
Major-
2016-01-30 07:35:01 +00:00
parent 26199f8c13
commit 035c0a74e9
3 changed files with 8 additions and 10 deletions
+2 -2
View File
@@ -92,7 +92,7 @@ class ItemSpellAction < SpellAction
if illegal_item?
mob.send_message('You cannot use that spell on this item!')
stop
next
return false
end
id = @item.id
@@ -132,7 +132,7 @@ on :message, :magic_on_item do |player, message|
message.terminate
else
enchant = ENCHANT_SPELLS[message.id]
if !enchant.nil? && enchant.button == spell
slot = message.slot
item = player.inventory.get(slot)