#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#
|
##@package
|
#
|
# @todo: buffÏûʧºó´¥·¢¼¼ÄÜ
|
#
|
# @author: Alee
|
# @date 2018-10-30 ÏÂÎç03:56:57
|
# @version 1.0
|
#
|
# @note:
|
#
|
#---------------------------------------------------------------------
|
|
import SkillShell
|
import IPY_GameWorld
|
import GameWorld
|
import GameObj
|
|
## BUFFÏûʧºó
|
# @param None
|
# @return None
|
def OnBuffDisappear(curObj, curSkill, curBuff, curEffect, tick):
|
# ÔÝÇÒÖ»ÓÐÍæ¼Ò£¬Íæ¼Ò¿ÉÒÔÈ¡Ö÷¶¯¹¥»÷µÄÄ¿±ê
|
if curObj.GetGameObjType() != IPY_GameWorld.gotPlayer:
|
return
|
defender = GameWorld.GetObj(curObj.GetUseSkillTagID(), curObj.GetUseSkillTagType())
|
if not defender or GameObj.GetHP(defender) <= 0:
|
return
|
if not GameWorld.CanHappen(curEffect.GetEffectValue(1)):
|
return
|
triggerSkill = GameWorld.GetGameData().GetSkillBySkillID(curEffect.GetEffectValue(0))
|
SkillShell.DoLogic_UseSkill(curObj, defender, triggerSkill, tick)
|
|
return
|
|
|