| | |
| | | return False
|
| | |
|
| | | #CD时间
|
| | | if curNPC.GetDictByKey(ChConfig.Def_Obj_Dict_TurnFightNum):
|
| | | if curNPC.GetDictByKey(ChConfig.Def_Obj_Dict_TurnFightTimeline):
|
| | | if useSkill.GetRemainTime():
|
| | | #GameWorld.Log('技能回合CD中 = %s, %s'%(useSkill.GetSkillName(), useSkill.GetRemainTime()))
|
| | | return False
|
| | |
| | | def DoAutoUseSkill(curNPC, curTag, tagDist, tick):
|
| | | #攻击僵持中
|
| | | if tick - curNPC.GetAttackTick() < curNPC.GetAtkInterval():
|
| | | if not (PetControl.IsPet(curNPC) or curNPC.GetDictByKey(ChConfig.Def_Obj_Dict_TurnFightNum)):
|
| | | if not (PetControl.IsPet(curNPC) or curNPC.GetDictByKey(ChConfig.Def_Obj_Dict_TurnFightTimeline)):
|
| | | #GameWorld.Log('攻击僵持中')
|
| | | return False
|
| | |
|
| | |
| | | if not useSkill or useSkill.GetSkillTypeID() == 0:
|
| | | break
|
| | |
|
| | | if useSkill.GetSkillType() == ChConfig.Def_SkillType_Revive:
|
| | | #复活技能单独处理
|
| | | continue
|
| | | |
| | | if useSkillIDOnDie and useSkillIDOnDie == useSkill.GetSkillID():
|
| | | #GameWorld.DebugLog("死亡释放的技能仅在死亡时才能释放!useSkillIDOnDie=%s" % useSkillIDOnDie)
|
| | | continue
|