forked from MagicBane/Server
Comment cleanup
This commit is contained in:
@@ -301,6 +301,8 @@ public class MobAI {
|
|||||||
|
|
||||||
public static boolean canCast(Mob mob) {
|
public static boolean canCast(Mob mob) {
|
||||||
|
|
||||||
|
int contractID = 0;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
// Performs validation to determine if a
|
// Performs validation to determine if a
|
||||||
@@ -309,9 +311,6 @@ public class MobAI {
|
|||||||
if (mob == null)
|
if (mob == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
||||||
int contractID = 0;
|
|
||||||
|
|
||||||
if (mob.isPlayerGuard() == true) {
|
if (mob.isPlayerGuard() == true) {
|
||||||
|
|
||||||
if (mob.agentType.equals(Enum.AIAgentType.GUARDMINION))
|
if (mob.agentType.equals(Enum.AIAgentType.GUARDMINION))
|
||||||
@@ -319,7 +318,7 @@ public class MobAI {
|
|||||||
else
|
else
|
||||||
contractID = mob.contract.getContractID();
|
contractID = mob.contract.getContractID();
|
||||||
|
|
||||||
//exception for werewolf and werebear guard captains
|
// exception allowing werewolf and werebear guard captains to cast
|
||||||
|
|
||||||
if (Enum.MinionType.ContractToMinionMap.get(contractID).isMage() == false && contractID != 980111 && contractID != 980110)
|
if (Enum.MinionType.ContractToMinionMap.get(contractID).isMage() == false && contractID != 980111 && contractID != 980110)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user