|
@@ -372,6 +372,12 @@ export default class AIPlayer {
|
|
|
ball = xGame.common.getRandArrEle(xGame.common.d2World.ballArr);
|
|
|
//选取完成
|
|
|
if (this.selectNum >= max) {
|
|
|
+ console.log('zh:jian kong bug1');
|
|
|
+ if (ball && ball.gameObj) {
|
|
|
+ // 安全访问ball.gameObj的属性
|
|
|
+ } else {
|
|
|
+ console.log('zh:jian kong bug2 如果到这里应该能看到一个alert弹框报错');
|
|
|
+ }
|
|
|
let dx = ball.gameObj.x;
|
|
|
let dy = ball.gameObj.y;
|
|
|
let kickAngle = 0; //击球夹角
|