mixed do_throw_obj_word_obj(object what, string word, object where) { object enemy; if( where && living(where) && (int)what->GetClass() > 1 ) { enemy = where; } else { enemy = 0; } if( this_player()->GetInCombat() || enemy ) { this_player()->eventPrint("You prepare to throw " + (string)what->GetShort() + "."); this_player()->SetAttack(enemy, (: eventThrow, this_player(), what, where :), (enemy ? ROUND_WEAPON : ROUND_OTHER)); return 1; }
int AllowPass(object who, object what){ if(!who) return 0; if(!objectp(who)) return 0; if(who->GetClass() == "thief" || adminp(who)) return 1; return ::AllowPass(who, what); }
int AllowPass(object who, object what){ if(who->GetClass() == "fighter") return 1; return ::AllowPass(who, what); }