|
@@ -699,7 +699,14 @@ class PetProc {
|
|
my_Assert(StlUtil::dictHasProperty($petDic, $pUid), ErrCode::user_store_NotExistPet);
|
|
my_Assert(StlUtil::dictHasProperty($petDic, $pUid), ErrCode::user_store_NotExistPet);
|
|
|
|
|
|
my_Assert(ctx()->store(true)->petUid_fight_position != $pUid, ErrCode::user_store_NotSelectPet_fight);
|
|
my_Assert(ctx()->store(true)->petUid_fight_position != $pUid, ErrCode::user_store_NotSelectPet_fight);
|
|
- my_Assert(!in_array($pUid, ctx()->store(true)->petUids_supportFight_position), ErrCode::user_store_NotSelectPet_supportfight);
|
|
|
|
|
|
+ $supportDic = ctx()->store(true)->petUids_supportFight_position;
|
|
|
|
+ if(StlUtil::dictHasProperty($supportDic, 1)){
|
|
|
|
+ my_Assert($pUid != $supportDic[1], ErrCode::user_store_NotSelectPet_supportfight);
|
|
|
|
+ }
|
|
|
|
+ if(StlUtil::dictHasProperty($supportDic, 2)){
|
|
|
|
+ my_Assert($pUid != $supportDic[2], ErrCode::user_store_NotSelectPet_supportfight);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
$costIns_pet = new Ins_Pet($petDic->$pUid);
|
|
$costIns_pet = new Ins_Pet($petDic->$pUid);
|
|
my_Assert($costIns_pet->qual == $costQual, ErrCode::user_store_equipMaterialQualErr);
|
|
my_Assert($costIns_pet->qual == $costQual, ErrCode::user_store_equipMaterialQualErr);
|