(Card card, GameEntity defender)
| 332 | } |
| 333 | |
| 334 | public boolean isAttacking(Card card, GameEntity defender) { |
| 335 | AttackingBand ab = getBandOfAttacker(card); |
| 336 | for (Entry<GameEntity, AttackingBand> ee : attackedByBands.get().entries()) { |
| 337 | if (ee.getValue() == ab) { |
| 338 | return ee.getKey() == defender; |
| 339 | } |
| 340 | } |
| 341 | return false; |
| 342 | } |
| 343 | |
| 344 | /** |
| 345 | * Checks if a card is currently attacking, returns false if the card is not currently attacking, even if its LKI was. |
no test coverage detected