Sqr/passiveobject/character/priest/po_devilstrike_attack1.nut

47 lines
891 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function setCustomData_po_DevilStrike1(obj,reciveData)
{
local rate = reciveData.readDword(); // 奢问溘(%)
local pAttack = sq_GetCurrentAttackInfo(obj);
sq_SetCurrentAttackBonusRate(pAttack, rate);
}
function setState_po_DevilStrike1(obj, state, datas)
{
}
function procAppend_po_DevilStrike1(obj)
{
local pChr = obj.getTopCharacter();
if(!pChr)
{
sq_SendDestroyPacketPassiveObject(obj);
return;
}
local state = pChr.getState();
local substate = pChr.getSkillSubState();
local pAni = obj.getCurrentAnimation();
local frmIndex = pAni.GetCurrentFrameIndex();
local bEnd = sq_IsEnd(pAni);
local isMyControl = obj.isMyControlObject();
if(bEnd) {
if(isMyControl) {
sq_SendDestroyPacketPassiveObject(obj);
}
return;
}
}
function onDestroyObject_po_DevilStrike1(obj, object)
{
}