| | |
| | | import PetControl
|
| | | import SkillShell
|
| | | import GameObj
|
| | | import TurnAttack
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | |
| | | #获取防守方召唤兽的主人
|
| | | curTagPlayer = NPCCommon.GetSummonNPCOwner(IPY_GameWorld.gotPlayer, curTagSummon)
|
| | | #攻击的是玩家的召唤兽
|
| | | if curTagPlayer != None and curTagPlayer.GetHP() > 0:
|
| | | if curTagPlayer != None and GameObj.GetHP(curTagPlayer) > 0:
|
| | | #进入战斗状态
|
| | | AttackCommon.SetPlayerBattleState(curTagPlayer, tick)
|
| | | #获取召唤兽的主人
|
| | |
| | |
|
| | | #防守方召唤兽死亡
|
| | | if GameObj.GetHP(curTagSummon) <= 0:
|
| | | if TurnAttack.SetKilled(curTagSummon):
|
| | | return
|
| | | curTagSummonNPCControl = NPCCommon.NPCControl(curTagSummon)
|
| | | #召唤兽死亡
|
| | | curTagSummonNPCControl.SetKilled()
|