src/scripts/Skill.js
/**
 * returns false and text if the skill cannot be used because its temporary disabled (silenced mage, blinded)
 * the text should indicate why and how long it is disabled
 * call super to check cost !
 */
returns false and text if the skill cannot be used because its temporary disabled (silenced mage, blinded)
the text should indicate why and how long it is disabled
call super to check cost !
returns false and text if the skill cannot be used because its temporary disabled ( silenced mage blinded ) the text should indicate why and how long it is disabled call super to check cost !
isEnabled() {
    let res={OK:true,msg:''};
    if(this.coolDown>0) res={OK:false,msg:this.coolDown+' turns cooldown'}; 
    if(!res.OK) return(res);
    res=this.getCost().canPay(this.parent.parent);
    return (res);
}
isEnabled ( ) { let res = { OK : true , msg : '' } ; if ( this . coolDown > 0 ) res = { OK : false , msg : this . coolDown + ' turns cooldown' } ; if ( ! res . OK ) return ( res ) ; res = this . getCost ( ) . canPay ( this . parent . parent ) ; return ( res ) ; }
returns false and text if the skill cannot be used because its temporary disabled (silenced mage, blinded)
 the text should indicate why and how long it is disabled
 call super to check cost !
returns false and text if the skill cannot be used because its temporary disabled ( silenced mage blinded ) the text should indicate why and how long it is disabled call super to check cost !