const int max_attack_numbers = 4;
int count = 0;
for (int m = 0; m < max_attack_numbers; m++) {
- if (!lore_ptr->r_ptr->blow[m].method)
- continue;
- if (lore_ptr->r_ptr->blow[m].method == RBM_SHOOT)
+ if (!lore_ptr->r_ptr->blow[m].method || (lore_ptr->r_ptr->blow[m].method == RBM_SHOOT))
continue;
if (lore_ptr->r_ptr->r_blows[m] || lore_ptr->know_everything)
int attack_numbers = 0;
for (int m = 0; m < max_attack_numbers; m++) {
- if (!lore_ptr->r_ptr->blow[m].method)
- continue;
- if (lore_ptr->r_ptr->blow[m].method == RBM_SHOOT)
- continue;
- if (!lore_ptr->r_ptr->r_blows[m] && !lore_ptr->know_everything)
+ if (!lore_ptr->r_ptr->blow[m].method || (lore_ptr->r_ptr->blow[m].method == RBM_SHOOT)
+ || (((lore_ptr->r_ptr->r_blows[m] == 0) && !lore_ptr->know_everything)))
continue;
rbm_type method = lore_ptr->r_ptr->blow[m].method;