1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Žsthc@s ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    d„Z
d„Z d„Z d„Z dS(iÿÿÿÿNcCstj|||ƒS(N(t AttackCommontCheckNPCCanAttackTag(tcurPett curTagPlayertskillttick((s|D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pyt GetCanAttack/scCstj|ƒ}|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|D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pytGetTagRelation9s c Cs‡tj|ƒ}tj||||||ƒ}|j}    tj|ƒ}
|
dkrjtj|
|    |dƒntj    |||j
|    ƒ|S(Ns Pet v Player( tGameObjtGetHPRt    GetHurtHPtHurtHPRRR    t OnPVPDamagetAddHurttHurtType( RRRt
skillValuet skillPercentt skillHurtListRtcurTagPlayerHPBeforeAtkthurtTypethurtHPtcurAttackPlayer((s|D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pytDoAttackVs         cCsŸtj|ƒ}tj|ƒ}|dkr`tj||ƒ|dkr\tj|||ƒndS|dkr‚tj|||ƒnt    j    |ƒ}|j
ƒt S(Ni( RRRRRtSetPlayerBattleStateR    tOnPlayerHitPlayertOnPlayerKillPlayert PlayerControltSetDeadtTrue(RRRRtcurTagPlayerHPt    curPlayerttagPlayerControl((s|D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pyt AttackResultys   
(t    NPCCommonR'Rt SkillCommonR
R tChEquipRt
SkillShellRRRR#R-(((s|D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pyt<module>s              
        #