src/scripts/Skill.js
//some predefined filter; chain them to narrow down the targets
some predefined filter; chain them to narrow down the targets
some predefined filter ; chain them to narrow down the targets
targetFilterSelf(targets){
        var possibleTarget = [];
        for(var target of targets) {
            var valid = true;
            for(var targ of target) {
                if(this.caster != targ) valid=false;
            }
            if(valid) possibleTarget.push(target);           
        }
        return possibleTarget;
}
targetFilterSelf ( targets ) { var possibleTarget = [ ] ; for ( var target of targets ) { var valid = true ; for ( var targ of target ) { if ( this . caster != targ ) valid = false ; } if ( valid ) possibleTarget . push ( target ) ; } return possibleTarget ; }
some predefined filter; chain them to narrow down the targets
some predefined filter ; chain them to narrow down the targets