|
@@ -703,6 +703,8 @@ class FightProc {
|
|
*/
|
|
*/
|
|
static function skillUnlock_gate($resultType, $gateId) {
|
|
static function skillUnlock_gate($resultType, $gateId) {
|
|
$dic = GameConfig::skills();
|
|
$dic = GameConfig::skills();
|
|
|
|
+
|
|
|
|
+ $gateIndex = Ins_GateInfo::gateNum($gateId);
|
|
foreach ($dic as $id => $mo) {
|
|
foreach ($dic as $id => $mo) {
|
|
if ($mo->unlock_acc_id_new == null) {
|
|
if ($mo->unlock_acc_id_new == null) {
|
|
continue;
|
|
continue;
|
|
@@ -711,7 +713,7 @@ class FightProc {
|
|
$unlockType = $strList[0];
|
|
$unlockType = $strList[0];
|
|
$unlockId = $strList[1];
|
|
$unlockId = $strList[1];
|
|
|
|
|
|
- if ($unlockType == 1 && $unlockId == $gateId && $resultType == true && ctx()->gates->GateList->$gateId->pass == 0 && !in_array($mo->typeId, ctx()->privateState->skillUnlockRecord)) {
|
|
|
|
|
|
+ if ($unlockType == 1 && $unlockId == $gateIndex && $resultType == true && ctx()->gates->GateList->$gateId->pass == 0 && !in_array($mo->typeId, ctx()->privateState->skillUnlockRecord)) {
|
|
ctx()->privateState->skillUnlockRecord[] = $mo->typeId;
|
|
ctx()->privateState->skillUnlockRecord[] = $mo->typeId;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -755,7 +757,8 @@ class FightProc {
|
|
* @return type
|
|
* @return type
|
|
*/
|
|
*/
|
|
static function skillUnlock_fightNum($resultType) {
|
|
static function skillUnlock_fightNum($resultType) {
|
|
- if (!$resultType) {
|
|
|
|
|
|
+
|
|
|
|
+ if ($resultType) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|