Fixed standard spell book sounds
Fixed spell hit and miss sounds not working Changed several existing spell sounds to use constlib Corrected confuse cast sound and added hit sound Corrected weaken cast sound and added hit sound Corrected curse cast sound and added hit sound Corrected vulnerability cast sound and added hit sound Corrected enfeeble cast sound and added hit sound Corrected stun cast sound and added hit sound Corrected crumble undead hit sound Added bind hit sound Corrected snare cast sound and added hit sound Corrected entangle cast sound and added hit sound Added sound for enchanting crossbow bolts Added saradomin strike hit and miss sounds Added claws of guthix hit and miss sounds Added flames of zamorak hit and miss sounds Fixed teleother sound Added ibans blast cast and hit sound Corrected superheat ore sound
This commit is contained in:
@@ -15,6 +15,7 @@ import core.game.node.item.Item;
|
||||
import core.game.world.map.RegionManager;
|
||||
import core.game.world.update.flag.context.Animation;
|
||||
import core.game.world.update.flag.context.Graphics;
|
||||
import org.rs09.consts.Sounds;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -132,18 +133,13 @@ public abstract class CombatSpell extends MagicSpell {
|
||||
* @param state The battle state.
|
||||
*/
|
||||
public void visualizeImpact(Entity entity, Entity target, BattleState state) {
|
||||
boolean combatVictim = target == entity.getProperties().getCombatPulse().getVictim();
|
||||
if (state.getEstimatedHit() == -1) {
|
||||
if (combatVictim) {
|
||||
sendAudio(target, new Audio(227, 1, 20));
|
||||
}
|
||||
sendAudio(target, new Audio(Sounds.SPELLFAIL_227, 1, 20));
|
||||
target.graphics(SPLASH_GRAPHIC);
|
||||
return;
|
||||
}
|
||||
target.graphics(endGraphic);
|
||||
if (combatVictim) {
|
||||
sendAudio(target, new Audio(impactAudio, 1, 20));
|
||||
}
|
||||
sendAudio(target, new Audio(impactAudio, 1, 20));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user