a replacement for an Enchantment spell, and the only other Transmigration spell that changes things to stone doesn't work on undead, while this does), and make Lee's Rapid Deconstruction damage a fully petrified monster in the same way it does a statue (except that the blast is described as "petrified fragments", and is the same color as the monster).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7107 c06c8d41-db1a-0410-9941-cceddc491573
M4H3RQME2IMRCMXFGYPCJS2DMW7HAGPUHCJ7X3524TGYHOBZWQZQC
beam.damage.num = 1; // to mark that a monster was targetted
// Petrified monsters can be exploded.
if (mons_is_petrified(&menv[mon]))
{
explode = true;
beam.ex_size = 2;
beam.name = "blast of petrified fragments";
beam.colour = menv[mon].colour;
beam.damage.num = 3;
if (player_hurt_monster(mon, roll_dice(beam.damage)))
beam.damage.num++;
break;
}
else
{
// Mark that a monster was targetted.
beam.damage.num = 1;
// Yes, this spell does lousy damage if the
// monster isn't susceptible. -- bwr
player_hurt_monster(mon, roll_dice(1, 5 + pow / 25));
goto do_terrain;
// Yes, this spell does lousy damage if the monster
// isn't susceptible. -- bwr
player_hurt_monster(mon, roll_dice(1, 5 + pow / 25));
goto do_terrain;
}