Antares
Spell Reviewer
- Joined
- Dec 13, 2009
- Messages
- 1,027
You can determine whether a destructable is a tree by ordering a dummy to harvest it and checking whether the command is successful.
Like with your Lumber Mill script, you want to put the configurables at the top of your script. In addition, I think RestoreTreesSetup and RestoreTrees should be a single script instead of split into two.
While a system like this has some use, it is unfortunately too simplistic and there are already tree revival systems on hive that are more complete.
Rejected
JASS:
function IsDestructableTree takes destructable dest returns boolean
return IssueTargetOrder(dummy, "harvest", dest)
endfunction
While a system like this has some use, it is unfortunately too simplistic and there are already tree revival systems on hive that are more complete.
Rejected