mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 05:20:22 -07:00
Fixed a regression where high and low alchemy spells no longer played any sound effect
This commit is contained in:
parent
05b414fdf6
commit
798c357291
1 changed files with 2 additions and 4 deletions
|
|
@ -5,8 +5,6 @@ import content.global.skill.magic.TeleportMethod
|
||||||
import content.global.skill.magic.spellconsts.Modern
|
import content.global.skill.magic.spellconsts.Modern
|
||||||
import core.game.event.ItemAlchemizationEvent
|
import core.game.event.ItemAlchemizationEvent
|
||||||
import core.game.event.TeleportEvent
|
import core.game.event.TeleportEvent
|
||||||
import core.api.getAttribute
|
|
||||||
import core.api.sendMessage
|
|
||||||
import content.global.skill.prayer.Bones
|
import content.global.skill.prayer.Bones
|
||||||
import core.game.interaction.MovementPulse
|
import core.game.interaction.MovementPulse
|
||||||
import core.game.node.entity.Entity
|
import core.game.node.entity.Entity
|
||||||
|
|
@ -24,8 +22,7 @@ import core.game.world.update.flag.context.Animation
|
||||||
import core.game.world.update.flag.context.Graphics
|
import core.game.world.update.flag.context.Graphics
|
||||||
import org.rs09.consts.Items
|
import org.rs09.consts.Items
|
||||||
import core.ServerConstants
|
import core.ServerConstants
|
||||||
import core.api.EquipmentSlot
|
import core.api.*
|
||||||
import core.api.getItemFromEquipment
|
|
||||||
import core.game.node.entity.combat.spell.MagicStaff
|
import core.game.node.entity.combat.spell.MagicStaff
|
||||||
import core.game.node.entity.impl.Animator
|
import core.game.node.entity.impl.Animator
|
||||||
|
|
||||||
|
|
@ -250,6 +247,7 @@ class ModernListeners : SpellListener("modern"){
|
||||||
player.animate(Animation(if (high) 713 else 712))
|
player.animate(Animation(if (high) 713 else 712))
|
||||||
player.graphics(Graphics(if (high) 113 else 112))
|
player.graphics(Graphics(if (high) 113 else 112))
|
||||||
}
|
}
|
||||||
|
playAudio(player, Audio(if (high) 97 else 98))
|
||||||
|
|
||||||
if (coins.amount > 0)
|
if (coins.amount > 0)
|
||||||
player.inventory.add(coins)
|
player.inventory.add(coins)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue