hzr
2018-08-09 3346f8aae7f8abbd4b27c4564cbb802e7e717cc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
B ÍZc@s¬ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
d„Z d„Z d„Z d„ZdS(iÿÿÿÿNcCstj|||ƒS(N(t AttackCommontCheckNPCCanAttackTag(t curSummonNPCt curTagPlayertskillttick((sƒ.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_Player.pyt GetCanAttack.scCs…tjtj|ƒ}|dkr1tjtjfStj    ||ƒrSt
j ||ƒSt j ||ƒsutjtjfSt j||ƒS(N(t    NPCCommontGetSummonNPCOwnert IPY_GameWorldt    gotPlayertNonetChConfigtType_Relation_EnemytDef_PASysMessage_Nonet    GameWorldt    IsSameObjtChNPCtOnGetOwnerRelationRtCheckPlayerAttackMode_PlayertType_Relation_FriendtDef_PASysMessage_AttackModetGetPlayersRelation(RRRRt summonOwner((sƒ.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_Player.pytGetTagRelation8s c CsÅ|jƒ}tj||||||ƒ}|j}    tjtj|ƒ}
|
dkr•tj    ||
ƒr|tj
|||    ƒntj |
|    |dƒntj
|||    ƒtj |||j |    ƒ|S(NsSummon v Player(tGetHPRt    GetHurtHPtHurtHPRRR    R
R RtSummonAddAngryByOwnert OnPVPDamagetAddHurttHurtType( RRRt
skillValuet skillPercentt skillHurtListRtcurTagPlayerHPBeforeAtkthurtTypethurtHPtcurAttackPlayer((sƒ.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_Player.pytDoAttackVs      c    CsÙ|jƒ}tj|ƒ}tjtj|ƒ}|dkr~|dkr~tj||ƒ|dkrztj
|||ƒndS|dkr¼tj |||ƒtj |ƒ}|j |ƒntj|ƒ}|jƒtS(Ni(RtFBLogict OnGetFBCurHPRRR    R
RtSetPlayerBattleStateR tOnPlayerHitPlayertOnPlayerKillPlayert
NPCControltRefreshAngryListt PlayerControltSetDeadtTrue(    RRRRtcurTagPlayerHPtcurTagPlayerFBHPt    curPlayert
npcControlttagPlayerControl((sƒ.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_Player.pyt AttackResultys    
(R(RR/R    RR Rt
BaseAttacktChEquipt
SkillShellRRRR'R7(((sƒ.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_Player.pyt<module>s               
        #