DragonNest/GameCommon/DnIgnoreRestoreHPBlow.cpp
Cussrro 47f7895977 Revert "修复编码问题"
This reverts commit 9e69c01767.
2024-12-21 10:04:04 +08:00

50 lines
965 B
C++

#include "StdAfx.h"
#include "DnIgnoreRestoreHPBlow.h"
#ifdef _DEBUG
#define new new(_NORMAL_BLOCK,__FILE__,__LINE__)
#endif
CDnIgnoreRestoreHPBlow::CDnIgnoreRestoreHPBlow( DnActorHandle hActor, const char *szValue )
: CDnBlow( hActor )
, m_nAllowSkillID( 0 )
{
m_StateBlow.emBlowIndex = STATE_BLOW::BLOW_275;
SetValue( szValue );
m_nAllowSkillID = atoi( szValue );
}
CDnIgnoreRestoreHPBlow::~CDnIgnoreRestoreHPBlow(void)
{
}
void CDnIgnoreRestoreHPBlow::Process( LOCAL_TIME LocalTime, float fDelta )
{
__super::Process( LocalTime, fDelta );
}
void CDnIgnoreRestoreHPBlow::OnBegin( LOCAL_TIME LocalTime, float fDelta )
{
__super::OnBegin( LocalTime, fDelta );
if( m_hActor->IsDie() )
{
SetState( STATE_BLOW::STATE_END );
return;
}
}
void CDnIgnoreRestoreHPBlow::OnEnd( LOCAL_TIME LocalTime, float fDelta )
{
__super::OnEnd( LocalTime, fDelta );
}
bool CDnIgnoreRestoreHPBlow::CanBegin( void )
{
bool bCanBegin = true;
return bCanBegin;
}