太阳神三国杀LUA求助

luapaiyi=sgs.CreateTriggerSkill{

name=luapaiyi,

frequency=sgs.Skill_NotFrequent,

events={sgs.Damaged},

on_trigger=function(self,event,player,data)

localroom=player:getRoom()

ifroom:askForSkillInvoke(player,self:objectName(),data)then

locallist=room:getAllPlayers()

localtarget=room:askForPlayerChosen(player,list,self:objectName())

iftargetthen

localcount=target:getLostHp()

ifcount<1then

target:drawCards(1)

player:drawCards(1)

iftarget:getHandcardNum()>player:getHandcardNum()then

target:turnOver()

end

else

iftarget:isAlive()then

target:drawCards(count)

end

player:drawCards(count)

iftarget:getHandcardNum()>player:getHandcardNum()then

target:turnOver()

end

end

end

end

end

}

免责声明:本站发布的游戏攻略(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场。
如果本文侵犯了您的权益,请联系站长邮箱进行举报反馈,一经查实,我们将在第一时间处理,感谢您对本站的关注!