1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
˜Ÿec@sÄddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z d„Z d„Zd„Zd„ZdS(iÿÿÿÿNcCstj|||ƒS(N(t AttackCommontCheckNPCCanAttackTag(t curSummonNPCt curTagPlayertskillttick((sƒE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_Player.pyt GetCanAttack0scCs…tjtj|ƒ}|dkr1tjtjfStj    ||ƒrStj
tjfSt j ||ƒsutj
tj fSt j||ƒS(N(t    NPCCommontGetSummonNPCOwnert IPY_GameWorldt    gotPlayertNonetChConfigtType_Relation_EnemytDef_PASysMessage_Nonet    GameWorldt    IsSameObjtType_Relation_FriendRtCheckPlayerAttackMode_PlayertDef_PASysMessage_AttackModetGetPlayersRelation(RRRRt summonOwner((sƒE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_Player.pytGetTagRelation:s c CsÈtj|ƒ}tj||||||ƒ}|j}    tjtj|ƒ}
|
dkr˜tj
||
ƒrtj |||    ƒntj |
|    |dƒntj |||    ƒtj |||j|    ƒ|S(NsSummon v Player(tGameObjtGetHPRt    GetHurtHPtHurtHPRRR    R
R RtSummonAddAngryByOwnert OnPVPDamagetAddHurttHurtType( RRRt
skillValuet skillPercentt skillHurtListRtcurTagPlayerHPBeforeAtkthurtTypethurtHPtcurAttackPlayer((sƒE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_Player.pytDoAttackYs     c    Csïtj|ƒ}tj|ƒ}tjtj|ƒ}|dkr|dkrtj    ||ƒ|dkr}tj |||ƒndSt j |ƒr”dS|dkrÒtj|||ƒtj|ƒ}|j|ƒntj|ƒ}|jƒtS(Ni(RRtFBLogict OnGetFBCurHPRRR    R
RtSetPlayerBattleStateR tOnPlayerHitPlayert
TurnAttackt    SetKilledtOnPlayerKillPlayert
NPCControltRefreshAngryListt PlayerControltSetDeadtTrue(    RRRRtcurTagPlayerHPtcurTagPlayerFBHPt    curPlayert
npcControlttagPlayerControl((sƒE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_Player.pyt AttackResult|s"   
(R'RR0R    RR Rt
BaseAttacktChEquipt
SkillShelltChNPCRR+RRR&R8(((sƒE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_Player.pyt<module>s                  
        #