Fixed SFX for Unarmed Melee (#453)
Fixed a glitch where the player would make a strange axe sound instead of the actual punch/kick sound.
This commit is contained in:
1 parent
ca36e516ad
commit
27c6c91fcb
1 file changed
+4
-10
+4
-10
@@ -228,19 +228,13 @@ public class CombatSounds {
|
||||
}
|
||||
|
||||
public static int getWeaponSounds(Player c) {
|
||||
if (c.playerEquipment[c.playerWeapon] <= 0) {
|
||||
return 417;
|
||||
}
|
||||
if (c.playerEquipment[c.playerWeapon] >= 1) {
|
||||
String wep = getItemName(c.playerEquipment[c.playerWeapon])
|
||||
.toLowerCase();
|
||||
if (c.playerEquipment[c.playerWeapon] <= 0) {
|
||||
switch (c.fightMode) {
|
||||
case 0:
|
||||
return 416;
|
||||
case 2:
|
||||
return 417;
|
||||
case 1:
|
||||
return 418;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (c.playerEquipment[c.playerWeapon] == 4718) {// Dharok's
|
||||
// Greataxe
|
||||
|
||||
Reference in new issue
Block a user