HomeWildfire Games

Improve Attack's GetBestAttackAgainst by only considering attack types that…
AuditedrP22569

Description

Improve Attack's GetBestAttackAgainst by only considering attack types that actually can attack the target.

Patch By: freagarach

Reviewed By: wraitii

Differential Revision: https://code.wildfiregames.com/D2112

Event Timeline

Freagarach raised a concern with this commit.Jul 29 2019, 5:46 PM
Freagarach added a subscriber: Freagarach.
Freagarach added inline comments.
/ps/trunk/binaries/data/mods/public/simulation/components/Attack.js
415–416

If allowCapture is false capture ought to be spliced from the types. (D2134)

This commit now has outstanding concerns.Jul 29 2019, 5:46 PM
Freagarach accepted this commit.EditedJul 29 2019, 8:55 PM

Fixed by rP22575.
Thanks for committing this :)

All concerns with this commit have now been addressed.Jul 29 2019, 8:55 PM