mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 04:09:54 -08:00
* Raid - Fixed that attacking with Meandering Towershell does fulfill the Raid condition.
This commit is contained in:
parent
fef57af896
commit
0ae89c453c
2 changed files with 3 additions and 4 deletions
|
|
@ -65,9 +65,9 @@ public class PlayerAttackedWatcher extends Watcher {
|
|||
|
||||
@Override
|
||||
public void watch(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.DECLARED_ATTACKERS) {
|
||||
if (event.getType() == GameEvent.EventType.ATTACKER_DECLARED) {
|
||||
int numberAttackers = playerAttacked.containsKey(event.getPlayerId()) ? playerAttacked.get(event.getPlayerId()) : 0;
|
||||
playerAttacked.put(event.getPlayerId(), numberAttackers + game.getCombat().getAttackers().size());
|
||||
playerAttacked.put(event.getPlayerId(), numberAttackers + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue