Praying on an altar with pet statue on it can revive the pet
This commit is contained in:
+1
-1
@@ -963,7 +963,7 @@ putting on water walking boots while underwater (maybe via magical breathing)
|
|||||||
and rising to surface wasn't causing the boots to become discovered
|
and rising to surface wasn't causing the boots to become discovered
|
||||||
flying pets wouldn't target underwater food but if they happened to fly over
|
flying pets wouldn't target underwater food but if they happened to fly over
|
||||||
such food they could and would eat it
|
such food they could and would eat it
|
||||||
praying on an altar with pet corpse on it can revive the pet
|
praying on an altar with pet corpse or statue on it can revive the pet
|
||||||
applying a cursed oil lamp can make your hands slippery
|
applying a cursed oil lamp can make your hands slippery
|
||||||
valkyries start with a spear instead of a long sword
|
valkyries start with a spear instead of a long sword
|
||||||
grid bugs don't have hands
|
grid bugs don't have hands
|
||||||
|
|||||||
+7
-2
@@ -2178,14 +2178,19 @@ pray_revive(void)
|
|||||||
struct obj *otmp;
|
struct obj *otmp;
|
||||||
|
|
||||||
for (otmp = svl.level.objects[u.ux][u.uy]; otmp; otmp = otmp->nexthere)
|
for (otmp = svl.level.objects[u.ux][u.uy]; otmp; otmp = otmp->nexthere)
|
||||||
if (otmp->otyp == CORPSE && has_omonst(otmp)
|
if ((otmp->otyp == CORPSE || otmp->otyp == STATUE)
|
||||||
|
&& has_omonst(otmp)
|
||||||
&& OMONST(otmp)->mtame && !OMONST(otmp)->isminion)
|
&& OMONST(otmp)->mtame && !OMONST(otmp)->isminion)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (!otmp)
|
if (!otmp)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
return (revive(otmp, TRUE) != NULL);
|
if (otmp->otyp == CORPSE)
|
||||||
|
return (revive(otmp, TRUE) != NULL);
|
||||||
|
else {
|
||||||
|
return (animate_statue(otmp, u.ux, u.uy, ANIMATE_SPELL, NULL) != NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* #pray command */
|
/* #pray command */
|
||||||
|
|||||||
Reference in New Issue
Block a user