Files
Sun1602/Server/GameServer/Status/ChaosStatus.cpp
T
2022-10-26 12:25:11 +08:00

23 lines
470 B
C++

#include "stdafx.h"
#include "Ability.h"
#include "ChaosStatus.h"
VOID ChaosStatus::Start()
{
const Character* const attacker = GetAttacker();
if (attacker == NULL)
{
return;
}
Character* const owner = GetOwner();
if (owner == NULL)
{
return;
}
AI_MSG_RUNAWAY ai_msg;
ai_msg.dwTargetKey = attacker->GetObjectKey();
ai_msg.dwRunAwayTime = GetApplicationTime();
owner->SendAIMessage(&ai_msg, sizeof(ai_msg));
}