mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 08:39:04 +00:00
Range/Specials/Clean up
- Added correct range distance for all range weapons - Fixed whip special attack when using on npcs - Removed some warnings - Refactored combat some - Fixed a few typos - Deleted some dead code - Fixed bug where you could kill players with auto retaliate outside of the wilderness if you were already fighting them when they ran out Closes #146 Closes #352 Also from a previous patch Closes #329
This commit is contained in:
@@ -2319,19 +2319,6 @@ public class PlayerAssistant {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void useOperate(int itemId) {
|
||||
switch (itemId) {
|
||||
case 11283:
|
||||
case 11284:
|
||||
if (player.playerIndex > 0) {
|
||||
player.getCombatAssistant().handleDfs();
|
||||
} else if (player.npcIndex > 0) {
|
||||
player.getCombatAssistant().handleDfsNPC();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void getSpeared(int otherX, int otherY) {
|
||||
int x = player.absX - otherX;
|
||||
int y = player.absY - otherY;
|
||||
|
||||
Reference in New Issue
Block a user