fighting: function(fighter,beHiter){
var that = this
var node = fighter.shift()
var beHitNode = beHiter[parseInt(Math.random()*beHiter.length)]
var basePos = node.getPosition()
var targetPos = beHitNode.getPosition()
node.runAction(
cc.sequence(
cc.moveTo(0.5, targetPos),
cc.callFunc(countAttack),
cc.moveTo(0.2, basePos),
cc.callFunc(attackEnd)
)
)
function countAttack(){
beHitNode.getComponent('warRole').pub_beHit(node.getComponent('warRole').pub_getAtt())
}
function attackEnd(){
for(var index in that.MonsterArr){
var blood = that.MonsterArr[index].getCompo