| | |
| | |
|
| | |
|
| | | # 当层级为0的时候删除此buff
|
| | | def SetBuffLayer(curPlayer, buff, layer, delBuff=True, skillTypeID=0, disappearTrigger=True):
|
| | | def SetBuffLayer(gameObj, buff, layer, delBuff=True, skillTypeID=0, disappearTrigger=True):
|
| | | buff.SetLayer(layer)
|
| | | if layer == 0 and delBuff:
|
| | | tick = GameWorld.GetGameWorld().GetTick()
|
| | | DelBuffBySkillTypeID(curPlayer, skillTypeID, tick, disappearTrigger)
|
| | | PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrByBuff()
|
| | | DelBuffBySkillTypeID(gameObj, skillTypeID, tick, disappearTrigger)
|
| | | |
| | | curObjType = gameObj.GetGameObjType()
|
| | | #玩家
|
| | | if curObjType == IPY_GameWorld.gotPlayer:
|
| | | #刷新玩家属性
|
| | | playerControl = PlayerControl.PlayerControl(gameObj)
|
| | | #playerControl.CalcPassiveBuffAttr()
|
| | | playerControl.RefreshPlayerAttrByBuff()
|
| | | #NPC
|
| | | elif curObjType == IPY_GameWorld.gotNPC:
|
| | | npcControl = NPCCommon.NPCControl(gameObj)
|
| | | npcControl.RefreshNPCAttrState()
|
| | | |
| | | return
|
| | |
|
| | |
|