Fix punishment iron ball yanking hero on top of a monster
When attached iron ball was in a pit (or a pool) with a monster, and your levitation ended, you were put on top of the monster. Add a sanity check for hero over monster.
This commit is contained in:
@@ -3560,7 +3560,7 @@ float_down(
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (Punished && !carried(uball)
|
||||
if (Punished && !carried(uball) && !m_at(uball->ox, uball->oy)
|
||||
&& (is_pool(uball->ox, uball->oy)
|
||||
|| ((trap = t_at(uball->ox, uball->oy))
|
||||
&& (is_pit(trap->ttyp) || is_hole(trap->ttyp))))) {
|
||||
|
||||
Reference in New Issue
Block a user