mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 08:39:17 +00:00
* Fix Prayer Burying Animation
This commit is contained in:
@@ -32,22 +32,20 @@ class BuryBoneAction < Action
|
|||||||
def execute
|
def execute
|
||||||
if @executions == 0
|
if @executions == 0
|
||||||
mob.send_message('You dig a hole in the ground...')
|
mob.send_message('You dig a hole in the ground...')
|
||||||
|
mob.play_animation(BURY_BONE_ANIMATION)
|
||||||
@executions += 1
|
@executions += 1
|
||||||
elsif @executions == 1
|
elsif @executions == 1
|
||||||
if mob.inventory.get(@slot).id == @bone.id
|
if mob.inventory.get(@slot).id == @bone.id
|
||||||
mob.play_animation(BURY_BONE_ANIMATION)
|
|
||||||
mob.send_message('You bury the bones.')
|
mob.send_message('You bury the bones.')
|
||||||
|
|
||||||
mob.inventory.reset(@slot)
|
mob.inventory.reset(@slot)
|
||||||
mob.skill_set.add_experience(Skill::PRAYER, @bone.experience)
|
mob.skill_set.add_experience(Skill::PRAYER, @bone.experience)
|
||||||
end
|
end
|
||||||
|
|
||||||
stop
|
stop
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def equals(other)
|
def equals(other)
|
||||||
get_class == other.get_class && @bone == other.bone
|
get_class == other.get_class
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user