Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BattleMode.prototype.copySelected = function(index) {
- var copy, spec, unit;
- if (commander.selection.length === 1) {
- unit = commander.selection[0];
- spec = unit.spec;
- copy = new types.Unit(spec);
- buildBar.setSpec(index, copy.toSpec());
- return control.savePlayer();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement