| | |
| | | import ItemCommon
|
| | | import OperControlManager
|
| | | import PetControl
|
| | | import ReadChConfig
|
| | | import DataRecordPack
|
| | | #import ChItem
|
| | | import ShareDefine
|
| | | import PlayerHorse
|
| | | import GameObj
|
| | | import random
|
| | | import NetPackCommon
|
| | |
| | | import GameMap
|
| | | import collections
|
| | | import PassiveBuffEffMng
|
| | | import ChEquip
|
| | | import SkillShell
|
| | | import FBCommon
|
| | | import IpyGameDataPY
|
| | | import PyGameData
|
| | | import TurnAttack
|
| | | #---------------------------------------------------------------------
|
| | | GameWorld.ImportAll("Script\\Skill\\" , "GameSkills")
|
| | | GameWorld.ImportAll("Script\\Skill\\" , "GameBuffs")
|
| | |
| | | # GameWorld.DebugLog("移动中不可使用技能")
|
| | | # return False
|
| | | #===========================================================================
|
| | | if curPlayer.GetPlayerVehicle() == IPY_GameWorld.pvHorse:
|
| | | #GameWorld.DebugLog("骑马中不允许释放技能", curPlayerID)
|
| | | PlayerHorse.PlayerRideHorseDown(curPlayer)
|
| | | #if curPlayer.GetPlayerVehicle() == IPY_GameWorld.pvHorse:
|
| | | # #GameWorld.DebugLog("骑马中不允许释放技能", curPlayerID)
|
| | | # PlayerHorse.PlayerRideHorseDown(curPlayer)
|
| | |
|
| | | if not PlayerControl.PlayerCanStateTransfer(curPlayer):
|
| | | #GameWorld.DebugLog('CheckUseSkill, PlayerStateErr = %s '%( curPlayer.GetPlayerAction() ), curPlayerID )
|
| | |
| | | #===========================================================================
|
| | |
|
| | | if curSkill.GetFuncType() == ChConfig.Def_SkillFuncType_HorseSkill and SkillCommon.isPassiveAttr(curSkill):
|
| | | PlayerHorse.RefreshHorseAttr(curPlayer)
|
| | | pass#PlayerHorse.RefreshHorseAttr(curPlayer)
|
| | | else:
|
| | | if SkillCommon.isPassiveAttr(curSkill):
|
| | | curControl = PlayerControl.PlayerControl(curPlayer)
|