#include "stdafx.h" #include "StyleStun.h" #include void StyleStun::Start() { EtcStatus::Start(); Character* const owner = GetOwner(); if (owner != NULL) { // NPC¿¡°Ô ½ºÅÏ ¸Þ¼¼Áö¸¦ º¸³¿ AI_MSG_STUN stun_msg; stun_msg.dwStunTick = GetApplicationTime(); owner->SendAIMessage(&stun_msg, sizeof(stun_msg)); // À̵¿ÁßÀ̶ó¸é ¸ØÃá´Ù. owner->StopMoving(); // °ø°Ý µô·¹À̸¦ ÃʱâÈ­ÇÑ´Ù. owner->SetActionDelay(0); } } void StyleStun::End() { EtcStatus::End(); Character* const owner = GetOwner(); if (owner != NULL) { //ÁÖÀÇ : eCHAR_STATE_STYLE_STUN Ŭ¶ó, ¼­¹ö°£ »óÅ Äڵ尡 ´Ù¸£´Ù. MSGSUB_SYNC_STATUS_REMOVE_BRD remove_brd; remove_brd.m_dwTargetKey = owner->GetObjectKey(); remove_brd.m_wStatusCode = eCHAR_STATE_STUN; owner->SendPacketAroundForSync(&remove_brd, TRUE); } }