Skip to content

Commit

Permalink
refactor battle_context
Browse files Browse the repository at this point in the history
this has multiple advantages:;
1) it fixes #3594, an assertion failue that happend when a unit with
only one attack attacked when that one attack was disabled.
2) It now creates each pair or battle_context_unit_stats only once for
each pauir of attacks, previsouly the coud would create multiple
temporary battle_context_unit_stats objects to for exampel check
"disabled"
3) It simplifies the code by removing special handling of some cases.
  • Loading branch information
gfgtdf committed Oct 16, 2018
1 parent bc9953f commit b4196af
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 192 deletions.

0 comments on commit b4196af

Please sign in to comment.