mirror of
https://github.com/therealKyp/Earth-and-Beyond-server
synced 2026-08-13 22:23:03 -04:00
24 lines
459 B
C++
24 lines
459 B
C++
#include "Net7.h"
|
|
#include "AbilityBase.h"
|
|
#include "PlayerClass.h"
|
|
#include "ServerManager.h"
|
|
#include "ObjectManager.h"
|
|
|
|
class PlayerClass;
|
|
|
|
|
|
void AbilityBase::SetTimer(long Duration)
|
|
{
|
|
if (m_Player)
|
|
{
|
|
m_Player->GetSectorManager()->AddTimedCall(m_Player, B_ABILITY_REMOVE, Duration, NULL, m_AbilityID, 0, 0);
|
|
}
|
|
}
|
|
|
|
void AbilityBase::SendError(const char * EMsg)
|
|
{
|
|
if (m_Player)
|
|
{
|
|
m_Player->SendPriorityMessageString(EMsg,"MessageLine",1000,4);
|
|
}
|
|
}
|