public static int CanConsortiaFight(int consortiaID1, int consortiaID2) { if (consortiaID1 == 0 || consortiaID2 == 0 || consortiaID1 == consortiaID2) { return(-1); } ConsortiaInfo consortiaInfo = ConsortiaMgr.FindConsortiaInfo(consortiaID1); ConsortiaInfo consortiaInfo2 = ConsortiaMgr.FindConsortiaInfo(consortiaID2); if (consortiaInfo == null || consortiaInfo2 == null || consortiaInfo.Level < 3 || consortiaInfo2.Level < 3) { return(-1); } return(ConsortiaMgr.FindConsortiaAlly(consortiaID1, consortiaID2)); }
public static int CanConsortiaFight(int consortiaID1, int consortiaID2) { int result; if (consortiaID1 == 0 || consortiaID2 == 0 || consortiaID1 == consortiaID2) { result = -1; } else { ConsortiaInfo consortia = ConsortiaMgr.FindConsortiaInfo(consortiaID1); ConsortiaInfo consortia2 = ConsortiaMgr.FindConsortiaInfo(consortiaID2); if (consortia == null || consortia2 == null || consortia.Level < 3 || consortia2.Level < 3) { result = -1; } else { result = ConsortiaMgr.FindConsortiaAlly(consortiaID1, consortiaID2); } } return(result); }