1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Sð    hc@s”ddlZddlZddlZddlZddlZddlZddlZddlZddlZd„Z    d„Z
d„Z d„Z dS(iÿÿÿÿNcCstj|||ƒS(N(t AttackCommontCheckNPCCanAttackTag(tcurPett curTagSummontskillttick((sd.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_SummonNPC.pyt GetCanAttack(scCsØtj|ƒ}|dkr+tjtjfStjtj    |ƒ}|dkr\tjtjfS|dkrÈ|dkrÈt
j ||ƒr–tj tjfSt j||ƒs¸tj tjfSt j||ƒStjtjfS(N(t
PetControlt GetPetOwnertNonetChConfigtType_Relation_EnemytDef_PASysMessage_Nonet    NPCCommontGetSummonNPCOwnert IPY_GameWorldt    gotPlayert    GameWorldt    IsSameObjtType_Relation_FriendRtCheckPlayerAttackMode_PlayertDef_PASysMessage_AttackModetGetPlayersRelation(RRRRt    curPlayert curTagPlayer((sd.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_SummonNPC.pytGetTagRelation2s  c Cs»tj||||||ƒ}|j}tj|ƒ}    tj|ƒ}
|
dkrž|    j|
dƒtj    t
j |ƒ} | dkržtj |
|| dƒqžntj |||j|ƒ|S(Nis Pet v Summon(Rt    GetHurtHPtHurtHPR t
NPCControlRRR    tAddObjToAngryListRRRt OnPVPDamagetAddHurttHurtType( RRRt
skillValuet skillPercentt skillHurtListRthurtTypethurtHPt summonControlt curPetOwnerR((sd.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_SummonNPC.pytDoAttackYs      cCs¯tjtj|ƒ}|dkrztj|ƒdkrztj||ƒt    j
|ƒ}|dkrztj |||ƒqzntj|ƒdkr«tj |ƒ}|j ƒntS(Ni(R RRRR    tGameObjtGetHPRtSetPlayerBattleStateRRtOnPlayerHitPlayerRt    SetKilledtTrue(RRRRRRtcurTagSummonNPCControl((sd.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_SummonNPC.pyt AttackResultws!  ( R Rt SkillCommonR
RRRt
SkillShellR)RRR(R0(((sd.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Pet_Attack_SummonNPC.pyt<module>s             
    '