Implemented Auto Shots with Config.

This commit is contained in:
MobiusDev
2016-07-08 23:46:39 +00:00
parent ee76eb17d9
commit 74fa05d65e
12 changed files with 97 additions and 26 deletions

View File

@ -374,7 +374,7 @@ public abstract class Inventory extends ItemContainer
if (item.isWeapon())
{
player.handleAutoShots();
player.handleAutoShots(false);
}
}
@ -470,7 +470,7 @@ public abstract class Inventory extends ItemContainer
if (item.isWeapon())
{
player.handleAutoShots();
player.handleAutoShots(Config.ENABLE_AUTO_SHOTS);
}
}
}

View File

@ -460,7 +460,7 @@ public class PcInventory extends Inventory
if (item.isEtcItem() && (item.getItemType() == EtcItemType.SOULSHOT))
{
actor.handleAutoShots();
actor.handleAutoShots(false);
}
// Notify to scripts
@ -516,7 +516,7 @@ public class PcInventory extends Inventory
if (item.isEtcItem() && (item.getItemType() == EtcItemType.SOULSHOT))
{
actor.handleAutoShots();
actor.handleAutoShots(false);
}
// Notify to scripts