hch
2018-08-21 d69b6619a1190baec5a116c0cf8817191bdce018
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
B ÍZc@s”ddlZddlZddlZddlZddlZddlZddlZddlZddlZd„Z    d„Z
d„Z d„Z dS(iÿÿÿÿNcCstj|||ƒS(N(t AttackCommontCheckNPCCanAttackTag(tcurPett curTagPlayertskillttick((s}.\\ProjectSServer\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}.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pytGetTagRelation8s c Cs„|jƒ}tj||||||ƒ}|j}    tj|ƒ}
|
dkrgtj|
|    |dƒntj|||j    |    ƒ|S(Ns Pet v Player(
tGetHPRt    GetHurtHPtHurtHPRRR    t OnPVPDamagetAddHurttHurtType( RRRt
skillValuet skillPercentt skillHurtListRtcurTagPlayerHPBeforeAtkthurtTypethurtHPtcurAttackPlayer((s}.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pytDoAttackUs          cCsœ|jƒ}tj|ƒ}|dkr]tj||ƒ|dkrYtj|||ƒndS|dkrtj|||ƒntj|ƒ}|j    ƒt
S(Ni( RRRRtSetPlayerBattleStateR    tOnPlayerHitPlayertOnPlayerKillPlayert PlayerControltSetDeadtTrue(RRRRtcurTagPlayerHPt    curPlayerttagPlayerControl((s}.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pyt AttackResultys    
( t    NPCCommonR&Rt SkillCommonR
R tChEquipRt
SkillShellRRR"R,(((s}.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pyt<module>s             
        $