class Candle extends GameObject
{

	protected event OnAreaEnter( evt : AreaEnteredEvent )
	{
		var puppet : weak< ScriptedPuppet >;
		puppet = ( ( ScriptedPuppet )( EntityGameInterface.GetEntity( evt.activator ) ) );
		if( puppet && puppet.IsBoss() )
		{
			if( StatusEffectSystem.ObjectHasStatusEffect( puppet, T"BaseStatusEffect.CloakedOda" ) )
			{
				GameObjectEffectHelper.StartEffectEvent( this, 'fx_candles_lightup', false );
			}
		}
	}

	protected event OnAreaExit( evt : AreaExitedEvent )
	{
		var puppet : weak< ScriptedPuppet >;
		puppet = ( ( ScriptedPuppet )( EntityGameInterface.GetEntity( evt.activator ) ) );
		if( puppet && puppet.IsBoss() )
		{
			GameObjectEffectHelper.BreakEffectLoopEvent( this, 'fx_candles_lightup' );
		}
	}

}

