22 lines
479 B
C++
22 lines
479 B
C++
#include "StdAfx.h"
|
|
#include "StunAbility.h"
|
|
#include "AbilityStatus.h"
|
|
#include "StatusManager.h"
|
|
|
|
|
|
bool StunAbility::Execute(Character* target, BYTE* pMsg, WORD& wMsgSize)
|
|
{
|
|
if (!BaseStatusAbility::Execute(target, pMsg, wMsgSize))
|
|
return false;
|
|
|
|
// 패킷구조체를 채운다.
|
|
SKILL_RESULT_STUN *pStunMsg = (SKILL_RESULT_STUN*)pMsg;
|
|
wMsgSize = pStunMsg->GetSize();
|
|
target->GetPos(&pStunMsg->m_wvCurPos);
|
|
|
|
target->CancelAllSkill();
|
|
|
|
return true;
|
|
}
|
|
|