()
| 112 | } |
| 113 | |
| 114 | public void sort() { |
| 115 | // Things that need to happen first should be 0-4 (Tap, PayMana) |
| 116 | // Things that happen that are generally undoable 5 (Pretty much everything) |
| 117 | // Things that are annoying to undo 6-10 (PayLife, GainControl) |
| 118 | // Things that are hard to undo 11+ (Zone Changing things) |
| 119 | // Things that are pretty much happen at the end (Untap) 16+ |
| 120 | // Things that NEED to happen last 100+ |
| 121 | |
| 122 | this.costParts.sort((o1, o2) -> ObjectUtils.compare(o1.paymentOrder(), o2.paymentOrder())); |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Get the cost parts, always including a mana cost part (which may be |
no test coverage detected