… | |
… | |
866 | * through that code if skill is set to change to the skill. |
866 | * through that code if skill is set to change to the skill. |
867 | */ |
867 | */ |
868 | if (player *pl = op->contr) |
868 | if (player *pl = op->contr) |
869 | { |
869 | { |
870 | if (skill) |
870 | if (skill) |
871 | op->change_skill (skill); |
871 | { |
|
|
872 | if (!op->apply (skill)) |
|
|
873 | return 0; |
|
|
874 | } |
872 | else |
875 | else |
873 | { |
876 | { |
874 | if (!pl->combat_ob) |
877 | if (!pl->combat_ob) |
875 | { |
878 | { |
876 | if (QUERY_FLAG (op, FLAG_READY_WEAPON)) |
879 | if (QUERY_FLAG (op, FLAG_READY_WEAPON)) |