cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
îù[c@s”ddlZddlZddlZddlZddlZddlZddlZddlZddlZd„Z    d„Z
d„Z d„Z dS(iÿÿÿÿNcCstj|||ƒS(N(t AttackCommontCheckNPCCanAttackTag(t curSummonNPCtcurTagNormalNPCtskillttick((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_NormalNPC.pyt GetCanAttack.scCstj|ƒ}tjtj|ƒ}|dkr_|tjkrOtjtj    fStj
tj    fS|j tj ƒ}||krtj
tj    fStjtj    fS(N( t    NPCCommont
GetFactiontGetSummonNPCOwnert IPY_GameWorldt    gotPlayertNonetChConfigtCampType_JusticetType_Relation_FriendtDef_PASysMessage_NonetType_Relation_Enemyt GetDictByKeytDef_NpcDictKey_CampType(RRRRtdefenderCampTypetnpcOwner_PlayertattackerCampType((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_NormalNPC.pytGetTagRelation:s  c Csötj|ƒ}tj||||||ƒ}|j}    tj|ƒ}
|
j||    |ƒtj|ƒ} | dkrÙ| j
ƒt j kr¡tj | |||    ƒn|    } |dkrÆ| |jƒ7} n|
j| | ƒntj|||j|    ƒ|S(N(tGameObjtGetHPRt    GetHurtHPtHurtHPRt
NPCControltAddObjDetelToAngryList_ByAttacktGetSummonOwnerDetelR tGetGameObjTypeR
R tNPCAddObjInHurtListt GetSkillAngrytAddObjToAngryListtAddHurttHurtType( Rt    curTagNPCRt
skillValuet skillPercentt skillHurtListRtcurTagNPCHPBeforeAtkthurtTypethurtHPtcurTagNPCControlt summonOwnertaddAngry((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_NormalNPC.pytDoAttackZs       cCsØtj|ƒrdStj|ƒdkrBtj||||ƒdStjtj|ƒ}tj    ||||ƒssdS|dkr¨t j |||ƒtj |||ƒnt j|||ƒtj|ƒ}|jƒdS(Ni(tChNPCtOnUndeathBossAttackedRRt OnNPCAttackedRR    R
R t OnCheckCanDieR tFBLogictDoFB_Player_KillNPCtOnPlayerAttackNPCDietDoFB_Npc_KillNPCRt    SetKilled(RR%RRt    curPlayerR,((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_NormalNPC.pyt AttackResult„s 
( RR
RR t    GameWorldR4t
SkillShellR0RRRR/R:(((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\SummonNPC_Attack_NormalNPC.pyt<module>s                       *