Files
Sqr/character/atmage/tundrasoul/po_attundrasoulfrozen.nut
2024-03-18 21:37:40 +08:00

73 lines
1.3 KiB
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_ATTundraSoulFrozen(obj, reciveData)
{
if(!obj) return;
local id = reciveData.readDword();
local frozenLevel = reciveData.readDword(); // 1.彩念溯涟
local frozenRate = reciveData.readDword(); // 2.彩念?徽
local frozenTime = reciveData.readDword(); // 3.彩念卫除
local pChr = obj.getTopCharacter();
local object = sq_GetObjectByObjectId(obj, id);
if(!pChr || !object)
{
sq_SendDestroyPacketPassiveObject(obj);
return;
}
local atk = sq_GetCurrentAttackInfo(obj);
sq_SetChangeStatusIntoAttackInfo(atk, 0, ACTIVESTATUS_FREEZE, frozenRate, frozenLevel, frozenTime);
if(obj.isMyControlObject())
{
sq_SendHitObjectPacket(obj,object,0,0,(sq_GetObjectHeight(obj) / 2));
}
}
function setState_po_ATTundraSoulFrozen(obj, state, datas)
{
if(!obj) return;
}
function procAppend_po_ATTundraSoulFrozen(obj)
{
if(!obj) return;
sq_SendDestroyPacketPassiveObject(obj);
}
function onChangeSkillEffect_po_ATTundraSoulFrozen(obj, skillIndex, reciveData)
{
if(!obj) return;
}
function onDestroyObject_po_ATTundraSoulFrozen(obj, object)
{
if(!obj) return;
}
function onKeyFrameFlag_po_ATTundraSoulFrozen(obj, flagIndex)
{
}
function onEndCurrentAni_po_ATTundraSoulFrozen(obj)
{
if(!obj) return;
}