Skip to content

Commit

Permalink
Fire and ice mages can't receive opposite elemental minions as gifts …
Browse files Browse the repository at this point in the history
…from their gods.
  • Loading branch information
elunna committed Oct 16, 2023
1 parent 1919240 commit 93587cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pray.c
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,11 @@ aligntyp alignment;
mnum = ndemon(A_NONE);
break;
}
if (mnum == NON_PM) {
if (mnum == NON_PM
|| (Role_if(PM_ICE_MAGE)
&& (mnum == PM_FIRE_ELEMENTAL || mnum == PM_MAGMA_ELEMENTAL))
|| (Role_if(PM_FLAME_MAGE)
&& (mnum == PM_ICE_ELEMENTAL || mnum == PM_WATER_ELEMENTAL))) {
You("feel a powerful presence gather, but it suddenly recedes!");
return;
}
Expand Down

0 comments on commit 93587cc

Please sign in to comment.