Does magic whistling a pet out of a trap count as untrapping?

Does magic whistling a pet out of a trap count as untrapping? - American Bulldog in armchair between burning candles at home

More curiosity than strategy. I know untrapping a pet gives an alignment boost if you #untrap. But, does using a magic whistle give the same alignment boost?



Best Answer

No. Using a magic whistle simply removes a pet from a trap, without any of the additional effects that untrapping has. From the source code, use_magic_whistle() in apply.c:

if (mtmp->mtame) {
    if (mtmp->mtrapped) {
        /* no longer in previous trap (affects mintrap) */
        mtmp->mtrapped = 0;
        fill_pit(mtmp->mx, mtmp->my);
    }

(fill_pit() deals with the possibility that teleporting your pet resulted in a boulder being left on top of a pit trap.)




Pictures about "Does magic whistling a pet out of a trap count as untrapping?"

Does magic whistling a pet out of a trap count as untrapping? - Black and White Long Coat Dog on Green Grass Field
Does magic whistling a pet out of a trap count as untrapping? - Happy, 2 years old young white golden retriever male is lying on the dry grass with a wooden stick
Does magic whistling a pet out of a trap count as untrapping? - Gray Cat on Tree Branch








Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Kelly, La Fattoria di Tobia Rifugio per Animali, Barnabas Davoti, tripleMdesignz