class SilentAffliction extends Affliction { validTurnNum : number ; constructor ( ) { super ( ENUM . AfflictionType . SILENT ) ; this . validTurnNum = 0 ; } canAttack ( ) { return true ; } canUseSkill ( ) { return this . isFinished ( ) ; } update ( ) { if ( -- this . validTurnNum <= 0 ) { this . clear ( ) ; } } add ( option ) { this . validTurnNum = option . turnNum ; } }