| | |
| | | return
|
| | |
|
| | | curHP = GameObj.GetHP(curNPC)
|
| | | if curPlayer.GetTeamID() > 0:
|
| | | AttackCommon.AddHurtValue(curNPC, curPlayer.GetTeamID(), ChConfig.Def_NPCHurtTypeTeam, curHP)
|
| | | AttackCommon.AddTeamPlayerHurtValue(curNPC, curPlayer.GetTeamID(), curPlayer.GetPlayerID(), curHP)
|
| | | else:
|
| | | AttackCommon.AddHurtValue(curNPC, curPlayer.GetPlayerID(), ChConfig.Def_NPCHurtTypePlayer, curHP)
|
| | | AttackCommon.NPCAddObjInHurtList(curPlayer, curNPC, curHP, curHP)
|
| | | |
| | | #if curPlayer.GetTeamID() > 0:
|
| | | # AttackCommon.AddHurtValue(curNPC, curPlayer.GetTeamID(), ChConfig.Def_NPCHurtTypeTeam, curHP)
|
| | | # AttackCommon.AddTeamPlayerHurtValue(curNPC, curPlayer.GetTeamID(), curPlayer.GetPlayerID(), curHP)
|
| | | #else:
|
| | | # AttackCommon.AddHurtValue(curNPC, curPlayer.GetPlayerID(), ChConfig.Def_NPCHurtTypePlayer, curHP)
|
| | |
|
| | | #统一调用攻击结束动作
|
| | | GameObj.SetHP(curNPC, 0)
|