ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/apply.C
(Generate patch)

Comparing deliantra/server/server/apply.C (file contents):
Revision 1.230 by root, Sat Mar 27 00:48:28 2010 UTC vs.
Revision 1.231 by root, Sat Mar 27 04:25:22 2010 UTC

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 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines