more breaking wands (trunk only)
If breaking a wand of polymorph uses up any floor objects, give a "you feel shuddering vibrations" message like happens when zapping.
This commit is contained in:
@@ -2908,6 +2908,9 @@ do_break_wand(obj)
|
||||
surrounding targets (or underlying objects) got affected yet.] */
|
||||
explode(obj->ox, obj->oy, -(obj->otyp), rnd(dmg), WAND_CLASS, EXPL_MAGICAL);
|
||||
|
||||
/* prepare for potential feedback from polymorph... */
|
||||
zapsetup();
|
||||
|
||||
/* this makes it hit us last, so that we can see the action first */
|
||||
for (i = 0; i <= 8; i++) {
|
||||
bhitpos.x = x = obj->ox + xdir[i];
|
||||
@@ -2990,6 +2993,9 @@ do_break_wand(obj)
|
||||
}
|
||||
}
|
||||
|
||||
/* potentially give post zap/break feedback */
|
||||
zapwrapup();
|
||||
|
||||
/* Note: if player fell thru, this call is a no-op.
|
||||
Damage is handled in digactualhole in that case */
|
||||
if (shop_damage) pay_for_damage("dig into", FALSE);
|
||||
|
||||
Reference in New Issue
Block a user