… | |
… | |
168 | |
168 | |
169 | if (!skill) |
169 | if (!skill) |
170 | skill = give_skill_by_name (who, skill_tool->skill); |
170 | skill = give_skill_by_name (who, skill_tool->skill); |
171 | |
171 | |
172 | if (!skill_tool->flag [FLAG_APPLIED]) |
172 | if (!skill_tool->flag [FLAG_APPLIED]) |
173 | if (apply_special (who, splay (skill_tool), AP_APPLY | AP_NO_READY)) |
173 | if (apply_special (who, splay (skill_tool), AP_APPLY)) |
174 | return 0; |
174 | return 0; |
175 | |
175 | |
176 | return splay (skill); |
176 | return splay (skill); |
177 | } |
177 | } |
178 | |
178 | |
… | |
… | |
893 | LOG (llevError, "Could not find anything to attack on %s\n", &op->name); |
893 | LOG (llevError, "Could not find anything to attack on %s\n", &op->name); |
894 | return 0; |
894 | return 0; |
895 | } |
895 | } |
896 | } |
896 | } |
897 | |
897 | |
898 | if (!op->change_weapon (pl->combat_ob)) |
898 | if (!op->apply (pl->combat_ob)) |
899 | return 0; |
899 | return 0; |
900 | } |
900 | } |
901 | |
901 | |
902 | /* lose invisiblity/hiding status for running attacks */ |
902 | /* lose invisiblity/hiding status for running attacks */ |
903 | if (pl->tmp_invis) |
903 | if (pl->tmp_invis) |