| | |
| | | import ReadChConfig
|
| | | import DataRecordPack
|
| | | import ChItem
|
| | | import SkillDataBoost
|
| | | import PlayerActivity
|
| | | import ShareDefine
|
| | | import PlayerGodWeapon
|
| | |
| | | return
|
| | |
|
| | | if not CheckClientAttackTick(curPlayer, clientTick, tick):
|
| | | AttackFailNotify(curPlayer, curSkill, ChConfig.SkillFail_AtkInterval) |
| | | AttackFailNotify(curPlayer, curSkill, ChConfig.SkillFail_AtkInterval) |
| | | curPlayer.Sync_ClientTick() |
| | | return
|
| | |
|
| | | #已经在攻击中
|
| | |
| | | # if attacker.GetGameObjType() == IPY_GameWorld.gotPlayer and useSkill.GetSkillTypeID() in ChConfig.Def_SkillID_Trig:
|
| | | # attacker.GetSkillManager().SetTrigBuffSkillTick(tick)
|
| | |
|
| | | GameWorld.Log("当前技能 = %s,触发附加技能成功 = %s,触发几率 = %s"%(useSkill.GetSkillName(),exSkill.GetSkillName(),rate))
|
| | | #GameWorld.Log("当前技能 = %s,触发附加技能成功 = %s,触发几率 = %s"%(useSkill.GetSkillName(),exSkill.GetSkillName(),rate))
|
| | |
|
| | | #----------------------------处理附加技能
|
| | | return DoLogic_UseSkill(attacker, defender, exSkill, tick, destX, destY, True)
|
| | |
| | | # @return 概率
|
| | | def GetSkillOfSeriesHitRate(attacker, defender, exSkill):
|
| | | baseRate = exSkill.GetHappenRate()
|
| | | #===========================================================================
|
| | | # addRate = SkillDataBoost.GetSkillBoostValeByType(attacker, exSkill, ChConfig.BoostType_HappenRate)
|
| | | # weakRate = 0
|
| | | # if defender:
|
| | | # weakRate = SkillDataBoost.GetSkillWeakenValeByType(defender, exSkill, ChConfig.WeakenType_HappenRate)
|
| | | # hitRate = max(0, baseRate + addRate - weakRate)
|
| | | #===========================================================================
|
| | | #GameWorld.DebugLog("触发几率: base=%s,add=%s,weak=%s, hitRate=%s" % (baseRate, addRate, weakRate, hitRate))
|
| | | return baseRate
|
| | |
|
| | | ##检查触发技能的使用条件
|
| | |
| | | tagRoundPosX = attacker.GetPosX()
|
| | | tagRoundPosY = attacker.GetPosY()
|
| | |
|
| | | #curSkill = SkillDataBoost.ChangeSkillData(attacker, defender, curSkill, isEnhanceSkill)
|
| | |
|
| | | #这个技能是Buff
|
| | | if SkillCommon.IsBuff(curSkill):
|
| | |
| | |
|
| | | moduleSuffix = GetBuffModuleSuffix(curEffect)
|
| | |
|
| | | changeBuffValueDict = {}#SkillDataBoost.GetBuffValueDict(curSkill, effectID)
|
| | | changeBuffValueDict = {}
|
| | |
|
| | | #是否是持续性技能
|
| | | if curSkill.GetSkillType() in ChConfig.Def_LstBuff_List:
|