public override bool Apply(float deltaTime)
{
this.elapsedTime += deltaTime;
if (this.elapsedTime > this.duration) {
this.EndEffect ();
return true;
}
if (this.appliedEffect)
{
return false;
}
if (this.owner.Speed < this.slowAmmount)
{
this.slowAmmount = this.owner.Speed;
}
this.owner.Speed -= this.slowAmmount;
this.appliedEffect = true;
return false;
}