修订判定随从问题
This commit is contained in:
parent
fc18c461db
commit
98fb1aa446
@ -63,7 +63,7 @@ export class BattleHandler {
|
||||
return false;
|
||||
}
|
||||
let obj = players.find( (item: PlayerHandler) =>{
|
||||
item.isMyPet(pet);
|
||||
return item.isMyPet(pet);
|
||||
});
|
||||
if(!obj){
|
||||
return false;
|
||||
@ -165,7 +165,7 @@ export class BattleHandler {
|
||||
}
|
||||
break;
|
||||
case GameCampType.ENEMY:
|
||||
if(dst && dst._friend != src && dst.isAlive()){
|
||||
if(dst && dst != src && dst._friend != src && dst.isAlive()){
|
||||
lst.push(dst);
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user