| | |
| | | #---------------------------------------------------------------------
|
| | | import GameWorld
|
| | | import SkillCommon
|
| | |
|
| | | import ChConfig
|
| | |
|
| | | def CheckCanHappen(attacker, defender, passiveEffect, skillID, **skillkwargs):
|
| | | curSkill = GameWorld.GetGameData().GetSkillBySkillID(skillID)
|
| | |
| | | buff = buffManager.FindBuff(curSkill.GetSkillTypeID())
|
| | | if not buff:
|
| | | return False
|
| | | if buff.GetOwnerID() != defender.GetDictByKey("burnOwnerID"):
|
| | | if buff.GetOwnerID() != attacker.GetDictByKey(ChConfig.Def_PlayerKey_BurnOwnerID):
|
| | | return False
|
| | | buff.SetRemainTime(1) # 此处必须设置为1 无限时长的buff亦可消失
|
| | | return True
|