Retera / WarsmashModEngine

An emulation engine to improve Warcraft III modding
GNU Affero General Public License v3.0
192 stars 37 forks source link

Bug: Ghouls can mine Gold Mine #30

Closed bearU369 closed 1 year ago

bearU369 commented 1 year ago

Ghouls' Gather ability can work on Gold Mines and harvest in it despite their ability should only work on trees. When harvesting, ghouls would be stuck in the gold mine until an Acolyte constructed a Haunted Gold Mine on it.

bearU369 commented 1 year ago

During testing with Harvest (Gold and Lumber) in the original, I found that the game has some sort of system that whenever its gold capacity is equal or less than 0, the harvester will not be allowed to harvest gold mines. Same with trees when its lumber capacity is equal or less than 0.

Assuming ghoul's harvest ability is basically the same Harvest ability as peasants' with gold capacity locked to 0. I think I can do this fix.

Retera commented 1 year ago

Sounds good! I went ahead and merged pull request #34 to fix this. In a local test on my computer, the fix appears to be working largely as expected.

You may notice that the "Must target resources." yellow error message doesn't show, but that's a separate issue we could target later if we want. The decision between whether to show an error, or whether to skip over the error and try other forms of targeting, currently has a few issues. But that's unrelated to the issue here.

So, I'm closing this issue as solved.