mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-05 16:49:04 +00:00
* 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:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user