mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[LTR] Implement Faramir, Prince of Ithilien (#10595)
This commit is contained in:
parent
5006ecc820
commit
a7d49e1f45
3 changed files with 150 additions and 0 deletions
|
|
@ -59,6 +59,11 @@ public class PlayersAttackedThisTurnWatcher extends Watcher {
|
|||
}
|
||||
}
|
||||
|
||||
public boolean hasPlayerAttackedPlayer(UUID attacker, UUID defender){
|
||||
PlayerList defendersList = playersAttackedThisTurn.getOrDefault(attacker, null);
|
||||
return defendersList != null && defendersList.contains(defender);
|
||||
}
|
||||
|
||||
public int getAttackedPlayersCount(UUID playerID) {
|
||||
PlayerList defendersList = playersAttackedThisTurn.getOrDefault(playerID, null);
|
||||
if (defendersList != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue