cehua_lyf
2019-03-06 3c8ee0a8a524a6251d7d5aae2372e76fd8a99b9c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
„Ñ€[c@s”ddlZddlZddlZddlZddlZddlZddlZddlZddlZd„Z    d„Z
d„Z d„Z dS(iÿÿÿÿNcCstj|||ƒS(N(t AttackCommontCheckNPCCanAttackTag(tcurPett curTagPlayertskillttick((sm.\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((sm.\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((sm.\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((sm.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pyt AttackResultxs    
( t    NPCCommonR&Rt SkillCommonR
R tChEquipRt
SkillShellRRR"R,(((sm.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_Player.pyt<module>s             
        #