Method isAutoAttackable should consider all war declarations.

This commit is contained in:
MobiusDevelopment
2021-05-22 22:40:09 +00:00
parent c88dcd8ea8
commit 65ed82796c
19 changed files with 19 additions and 19 deletions

View File

@ -8207,7 +8207,7 @@ public class PlayerInstance extends Playable
if ((attackerClan != null) && (getWantsPeace() == 0) && (attackerPlayer.getWantsPeace() == 0) && !isAcademyMember())
{
final ClanWar war = attackerClan.getWarWith(getClanId());
if ((war != null) && (war.getState() == ClanWarState.MUTUAL))
if ((war != null) && ((war.getState() == ClanWarState.MUTUAL) || (((war.getState() == ClanWarState.BLOOD_DECLARATION) || (war.getState() == ClanWarState.DECLARATION)) && (war.getAttackerClanId() == attackerClan.getId()))))
{
return true;
}