1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
à—Ÿec@s¬ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
d„Z d„Z d„Z d„ZdS(iÿÿÿÿNcCstj|||ƒS(N(t AttackCommontCheckNPCCanAttackTag(tcurPett curTagPlayertskillttick((s}E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pyt GetCanAttack0scCstj|ƒ}|dkr+tjtjfStj||ƒrMtjtjfSt    j
||ƒsotjtj fSt    j ||ƒS(N( t
PetControlt GetPetOwnertNonetChConfigtType_Relation_EnemytDef_PASysMessage_Nonet    GameWorldt    IsSameObjtType_Relation_FriendRtCheckPlayerAttackMode_PlayertDef_PASysMessage_AttackModetGetPlayersRelation(RRRRt curPetOwner((s}E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pytGetTagRelation:s c Cs‡tj|ƒ}tj||||||ƒ}|j}    tj|ƒ}
|
dkrjtj|
|    |dƒntj    |||j
|    ƒ|S(Ns Pet v Player( tGameObjtGetHPRt    GetHurtHPtHurtHPRRR    t OnPVPDamagetAddHurttHurtType( RRRt
skillValuet skillPercentt skillHurtListRtcurTagPlayerHPBeforeAtkthurtTypethurtHPtcurAttackPlayer((s}E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pytDoAttackWs         cCs²tj|ƒ}tj|ƒ}|dkr`tj||ƒ|dkr\tj|||ƒndStj    |ƒrsdS|dkr•tj
|||ƒnt j |ƒ}|j ƒt S(Ni(RRRRRtSetPlayerBattleStateR    tOnPlayerHitPlayert
TurnAttackt    SetKilledtOnPlayerKillPlayert PlayerControltSetDeadtTrue(RRRRtcurTagPlayerHPt    curPlayerttagPlayerControl((s}E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pyt AttackResultzs   
(t    NPCCommonR)Rt SkillCommonR
R tChEquipRt
SkillShellRR&RRR#R/(((s}E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pyt<module>s               
        #