--- deliantra/server/common/object.C 2007/05/15 19:07:15 1.150 +++ deliantra/server/common/object.C 2007/05/16 11:10:01 1.151 @@ -484,13 +484,6 @@ if (chosen_skill) chosen_skill->flag [FLAG_APPLIED] = true; - if (ob && !ob->flag [FLAG_APPLIED]) - { - LOG (llevError | logBacktrace, "%s changed to unapplied weapon %s", - &name, ob->debug_desc ()); - return false; - } - update_stats (); if (ob) @@ -514,6 +507,13 @@ else ;//new_draw_info_format (NDI_UNIQUE, 0, this, "You unwield your weapons."); + if (ob && !ob->flag [FLAG_APPLIED] && ob->type != SPELL) + { + LOG (llevError | logBacktrace, "%s changed to unapplied weapon %s", + &name, ob->debug_desc ()); + return false; + } + return true; }