… | |
… | |
2547 | new_draw_info (NDI_UNIQUE, 0, pl, "But you are floating high " "above the ground!"); |
2547 | new_draw_info (NDI_UNIQUE, 0, pl, "But you are floating high " "above the ground!"); |
2548 | return 0; |
2548 | return 0; |
2549 | } |
2549 | } |
2550 | } |
2550 | } |
2551 | |
2551 | |
2552 | /* Check for PLAYER to avoid a DM to disappear in a puff of smoke if |
|
|
2553 | * applied. |
|
|
2554 | */ |
|
|
2555 | if (op->type != PLAYER && QUERY_FLAG (op, FLAG_WAS_WIZ) && !QUERY_FLAG (pl, FLAG_WAS_WIZ)) |
|
|
2556 | { |
|
|
2557 | play_sound_map (pl->map, pl->x, pl->y, SOUND_OB_EVAPORATE); |
|
|
2558 | new_draw_info (NDI_UNIQUE, 0, pl, "The object disappears in a puff " "of smoke!"); |
|
|
2559 | new_draw_info (NDI_UNIQUE, 0, pl, "It must have been an illusion."); |
|
|
2560 | op->destroy (); |
|
|
2561 | return 1; |
|
|
2562 | } |
|
|
2563 | |
|
|
2564 | pl->contr->last_used = op; |
2552 | pl->contr->last_used = op; |
2565 | |
2553 | |
2566 | tmp = manual_apply (pl, op, aflag); |
2554 | tmp = manual_apply (pl, op, aflag); |
2567 | if (!quiet) |
2555 | if (!quiet) |
2568 | { |
2556 | { |