#include "mind/mind-types.h"
#include "player/player-class.h"
#include "player/player-damage.h"
-#include "spell-kind/spells-teleport.h"
#include "player/player-status-table.h"
+#include "spell-kind/spells-teleport.h"
#include "spell/spell-types.h"
#include "status/bad-status-setter.h"
#include "status/base-status.h"
if (caster_ptr->icky_wield[0])
cm_ptr->chance += 20;
- else if (has_melee_weapon(caster_ptr, INVEN_RARM))
+ else if (has_melee_weapon(caster_ptr, INVEN_MAIN_HAND))
cm_ptr->chance += 10;
if (caster_ptr->icky_wield[1])
cm_ptr->chance += 20;
- else if (has_melee_weapon(caster_ptr, INVEN_LARM))
+ else if (has_melee_weapon(caster_ptr, INVEN_SUB_HAND))
cm_ptr->chance += 10;
if (cm_ptr->n == 5)
static void mind_turn_passing(player_type *caster_ptr, cm_type *cm_ptr)
{
- if (!cm_ptr->on_mirror || (caster_ptr->pclass != CLASS_MIRROR_MASTER)) {
- take_turn(caster_ptr, 100);
- return;
+ if (cm_ptr->on_mirror && (caster_ptr->pclass == CLASS_MIRROR_MASTER)) {
+ if (cm_ptr->n == 3 || cm_ptr->n == 5 || cm_ptr->n == 7 || cm_ptr->n == 16) {
+ take_turn(caster_ptr, 50);
+ return;
+ }
}
- if (cm_ptr->n == 3 || cm_ptr->n == 5 || cm_ptr->n == 7 || cm_ptr->n == 16)
- take_turn(caster_ptr, 50);
+ take_turn(caster_ptr, 100);
}
static bool judge_mind_chance(player_type *caster_ptr, cm_type *cm_ptr)
break;
}
}
-}
+}
\ No newline at end of file