| | |
| | | import AICommon
|
| | | import ChConfig
|
| | | import GameObj
|
| | | import PetControl
|
| | |
|
| | | Def_LastAI1ProTick = "LastAI1ProTick" # 最后一次执行tick
|
| | |
|
| | |
| | | posX, posY = petControl.GetMoveNearPos(curPlayer.GetPosX(), curPlayer.GetPosY(), 1)
|
| | | rolePet.ResetPos(posX, posY)
|
| | |
|
| | | |
| | | if tick - rolePet.GetAttackTick() >= rolePet.GetAtkInterval():
|
| | | PetControl.PetFight(curPlayer, tick)
|
| | | |
| | | #===========================================================================
|
| | | # skillManager = rolePet.GetSkillManager()
|
| | | # for index in range(0, skillManager.GetSkillCount()):
|