mele attack null checks
This commit is contained in:
1 parent
16a0b9c0e3
commit
97b2af52b9
2 files changed
+6
-3
No files matched your search
@@ -133,6 +133,9 @@ public class MobAI {
|
||||
if (mob.isMoving() && mob.getRange() > 20)
|
||||
return;
|
||||
|
||||
if(target.combatStats == null)
|
||||
target.combatStats = new PlayerCombatStats(target);
|
||||
|
||||
// add timer for last attack.
|
||||
|
||||
ItemBase mainHand = mob.getWeaponItemBase(true);
|
||||
|
||||
@@ -117,9 +117,9 @@ public enum KeyCloneAudit {
|
||||
public static void suspectMultibox(PlayerCharacter pc){
|
||||
String machineID = pc.getClientConnection().machineID;
|
||||
if(machineID.contains("rsIwTas")){
|
||||
Logger.error("MULTIBOX SOFTWARE DETECTED ON ACCOUNT: " + pc.getAccount().getUname());
|
||||
DbManager.AccountQueries.SET_TRASH(pc.getAccount().getUname(), "MULTIBOX");
|
||||
pc.getClientConnection().forceDisconnect();
|
||||
//Logger.error("MULTIBOX SOFTWARE DETECTED ON ACCOUNT: " + pc.getAccount().getUname());
|
||||
//DbManager.AccountQueries.SET_TRASH(pc.getAccount().getUname(), "MULTIBOX");
|
||||
//pc.getClientConnection().forceDisconnect();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user