/////////////////////////////////////////////////////////////////////////////
//Stun
/////////////////////////////////////////////////////////////////////////////
StatusStun::StatusStun(const Id & owner, double delay)
: CreatureStatus(CRESTATUS_STUN, owner), m_parFX(0)
{
	TimeInit(&m_stunDelay, delay);

	string fxTxtFile = GAMEFOLDER;
	fxTxtFile += "\\";
	fxTxtFile += "Textures\\Particles\\star.tga";

	Creature *pCre = (Creature *)IDPageQuery(m_owner);

	if(pCre)
	{
		fxGlow_init fx;

		fx.glowTxt = TextureCreate(0, fxTxtFile.c_str(), false, 0);

		if(fx.glowTxt)
		{
			fx.r = fx.g = fx.b = 255;

			fx.scaleStart = 0; fx.scaleEnd = pCre->BoundGetRadius()*2;

			fx.delay = delay*0.125;

			fx.bRepeat = true;

			m_parFX = PARFXCreate(ePARFX_GLOW, &fx, -1, pCre->GetOBJ(), -1, 0);
		}
	}
}