#include "spells-floor.h"
#include "object-hook.h"
+#include "monster-status.h"
#ifdef ALLOW_WIZARD
monster_type *m_ptr = ¤t_floor_ptr->m_list[i];
/* Paranoia -- Skip dead monsters */
- if (!m_ptr->r_idx) continue;
+ if (!monster_is_valid(m_ptr)) continue;
/* Skip the mount */
if (i == p_ptr->riding) continue;
monster_type *m_ptr = ¤t_floor_ptr->m_list[i];
/* Paranoia -- Skip dead monsters */
- if (!m_ptr->r_idx) continue;
+ if (!monster_is_valid(m_ptr)) continue;
/* Skip the mount */
if (i == p_ptr->riding) continue;