mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 00:38:11 +00:00
Add more documentation and fix rubocop warnings
This commit is contained in:
@@ -20,8 +20,8 @@ end
|
||||
|
||||
on :message, :magic_on_mob do |player, message|
|
||||
target = $world.npc_repository.get(message.index)
|
||||
|
||||
next unless SPELLBOOKS.has_key? message.interface_id
|
||||
|
||||
next unless SPELLBOOKS.key? message.interface_id
|
||||
|
||||
player_combat_state = player.get_combat_state
|
||||
player_combat_state.target = target
|
||||
@@ -29,7 +29,7 @@ on :message, :magic_on_mob do |player, message|
|
||||
spellbook = SPELLBOOKS[message.interface_id]
|
||||
spell = spell_for(spellbook, message.spell_id)
|
||||
player_combat_state.queue_attack(spell.attack)
|
||||
|
||||
|
||||
player.walking_queue.clear
|
||||
player.start_action CombatAction.new(player, true)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user