/// <summary> /// Checks whether the effect is finished. Once the duration runs out, EndEffect is called. /// </summary> /// <returns>Returns whether there's still duration left on the ability</returns> public bool IsFinished() { if (duration > 0) { return(false); } effect.EndEffect(); return(true); }