Skip to content

Commit

Permalink
Keeper powers target keeperless creatures (#3370)
Browse files Browse the repository at this point in the history
Fixes #3365

Allows you to cast chicken or disease on a yellow creature a mapmaker placed on a map without a yellow keeper.
  • Loading branch information
Loobinex authored Jul 26, 2024
1 parent a7c121d commit c8e1d1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/magic.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ TbBool can_cast_power_on_thing(PlayerNumber plyr_idx, const struct Thing *thing,
}
if ((powerst->can_cast_flags & PwCast_EnemyCrtrs) != 0)
{
if (players_are_enemies(plyr_idx, thing->owner)) {
if (!players_creatures_tolerate_each_other(plyr_idx, thing->owner))
{
return true;
}
}
Expand Down

0 comments on commit c8e1d1e

Please sign in to comment.