* Fix Spam Clicking for Magic

* Fix OverRide Magic Spells
* Fix Process Element check
* Runes Read In the correct of how Runescape does (primary, elemental)
* Changed MAGIC_SKILL_ID for add exp to Skill::Magic
This commit is contained in:
Jesse Woolsey
2016-02-13 03:21:47 -05:00
parent 8bc3ba60ac
commit 574371f578
5 changed files with 27 additions and 27 deletions
+7 -2
View File
@@ -46,7 +46,10 @@ class SpellAction < Action
stop
return false
end
process_elements
unless process_elements
stop
return
end
end
execute_action
@pulses += 1
@@ -81,7 +84,7 @@ class SpellAction < Action
end
def equals(other)
get_class == other.get_class && @spell == other.spell
get_class == other.get_class
end
end
@@ -101,6 +104,8 @@ class ItemSpellAction < SpellAction
if @pulses == 0
id = @item.id
mob.send(DISPLAY_SPELLBOOK)
# TODO: There has to be a better way to do this.
@spell.elements.each do |element, amount|
element.runes.each do |rune|