| | |
| | | import GameWorld
|
| | | import SkillCommon
|
| | | import BuffSkill
|
| | | import IPY_GameWorld
|
| | |
|
| | | def CheckCanHappen(attacker, defender, effect, tagSkill):
|
| | | def CheckCanHappen(attacker, defender, effect, tagSkill, **skillkwargs):
|
| | | debuffState = effect.GetEffectValue(1)
|
| | | if debuffState and debuffState != SkillCommon.GetBuffStateType(tagSkill):
|
| | | return False
|
| | |
| | | return
|
| | |
|
| | | BuffSkill.SetBuffLayer(attacker, findBuff, findBuff.GetLayer()-1, skillTypeID=findSkill.GetSkillTypeID())
|
| | | if defender.GetGameObjType() != IPY_GameWorld.gotPlayer:
|
| | | # 不反弹NPC
|
| | | return
|
| | |
|
| | | # 给对方加buff
|
| | | BuffSkill.DoAddBuff(defender, SkillCommon.GetBuffType(tagSkill), tagSkill,
|