forked from MagicBane/Server
More ordinal refactor
This commit is contained in:
@@ -865,10 +865,10 @@ public enum CombatManager {
|
||||
if (acItem == null || tarItem == null)
|
||||
return false;
|
||||
|
||||
Item acMain = acItem.getItemFromEquipped(1);
|
||||
Item acOff = acItem.getItemFromEquipped(2);
|
||||
Item tarMain = tarItem.getItemFromEquipped(1);
|
||||
Item tarOff = tarItem.getItemFromEquipped(2);
|
||||
Item acMain = acItem.getItemFromEquipped(EquipSlotType.RHELD);
|
||||
Item acOff = acItem.getItemFromEquipped(EquipSlotType.LHELD);
|
||||
Item tarMain = tarItem.getItemFromEquipped(EquipSlotType.RHELD);
|
||||
Item tarOff = tarItem.getItemFromEquipped(EquipSlotType.LHELD);
|
||||
|
||||
return !isRanged(acMain) && !isRanged(acOff) && !isRanged(tarMain) && !isRanged(tarOff);
|
||||
}
|
||||
@@ -886,7 +886,7 @@ public enum CombatManager {
|
||||
if (acItem == null || tarItem == null)
|
||||
return false;
|
||||
|
||||
Item tarOff = tarItem.getItemFromEquipped(2);
|
||||
Item tarOff = tarItem.getItemFromEquipped(EquipSlotType.LHELD);
|
||||
|
||||
if (tarOff == null)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user