Skip to content

Commit

Permalink
makes attacks from team owned to not own team country possible
Browse files Browse the repository at this point in the history
  • Loading branch information
renebaudisch committed Mar 14, 2020
1 parent feeb32e commit eddb598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImperaPlus.Domain/Games/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ public void Attack(
throw new DomainException(ErrorCode.OriginCountryNotOwnedByTeam, "Can only initiate actions from countries that belong to the same team");
}

if (sourceCountry.PlayerId == destCountry.PlayerId)
if (this.CurrentPlayerId == destCountry.PlayerId)
{
throw new DomainException(ErrorCode.AttackOwnCountries, "Cannot attack own countries");
}
Expand Down

0 comments on commit eddb598

Please sign in to comment.