src/scripts/Skill.js
//returns True if the skill can be used on the target(s)
returns True if the skill can be used on the target(s)
returns True if the skill can be used on the target ( s )
isValidTarget(target) {
    var filtered = this.targetFilter([target]); 
    for(var targ of target) {
        var _i = filtered.indexOf(target);
        if(_i<0) return false;
    }
    return true;
}
isValidTarget ( target ) { var filtered = this . targetFilter ( [ target ] ) ; for ( var targ of target ) { var _i = filtered . indexOf ( target ) ; if ( _i < 0 ) return false ; } return true ; }
returns True if the skill can be used on the target(s)
returns True if the skill can be used on the target ( s )
// filtered can be [[mole1,mole2]] or [[dragon],[mole1,mole2]] //target is [dragon] or [mole1,mole2] //[[]] !