public override void onRevengecry(Toy pEnemy) { if (null == pEnemy || pEnemy.isDead()) { return; } // 判断当前状态能否攻打其他英雄 // 眩晕中,正在攻击中其他英雄,都不行 if (!canRevenge()) { return; } this.setTarget(pEnemy); // 当前处于idle状态就直接攻击 if (this.checkCurrBehaviorType(eBehaviorState.eBS_IDLE)) { attack(); } }