… | |
… | |
3514 | { |
3514 | { |
3515 | if (IS_COMBAT_SKILL (op->subtype)) |
3515 | if (IS_COMBAT_SKILL (op->subtype)) |
3516 | { |
3516 | { |
3517 | if (skill_flags [op->subtype] & SF_NEED_ITEM) |
3517 | if (skill_flags [op->subtype] & SF_NEED_ITEM) |
3518 | { |
3518 | { |
|
|
3519 | // try to find the weapon, and apply it instead |
3519 | for (object *item = who->inv; item; item = item->below) |
3520 | for (object *item = who->inv; item; item = item->below) |
3520 | if (item->type == op->weapontype && item->flag [FLAG_APPLIED]) |
3521 | if (item->type == op->weapontype && item->flag [FLAG_APPLIED]) |
3521 | { |
3522 | { |
3522 | if (item->skill == op->skill) |
3523 | if (item->skill == op->skill) |
3523 | { |
3524 | { |