forked from github/server
"RESERVIERE und GIB bei Monstern" Test auf GIVEITEM eingefuehrt.
This commit is contained in:
parent
2b104afe50
commit
19fd2d7265
|
@ -192,6 +192,7 @@ get_pooled(const unit * u, const resource_type * rtype, unsigned int mode, int c
|
|||
if (u==v) continue;
|
||||
if (fval(v, UFL_LOCKED)) continue;
|
||||
if (urace(v)->ec_flags & NOGIVE) continue;
|
||||
if (urace(v)->ec_flags & GIVEITEM == 0) continue;
|
||||
|
||||
if (v->faction == f) {
|
||||
if ((mode & GET_POOLED_FORCE)==0) {
|
||||
|
@ -244,6 +245,8 @@ use_pooled(unit * u, const resource_type * rtype, unsigned int mode, int count)
|
|||
for (v = r->units; use>0 && v!=NULL; v = v->next) if (u!=v) {
|
||||
int mask;
|
||||
if (urace(v)->ec_flags & NOGIVE) continue;
|
||||
if (urace(v)->ec_flags & GIVEITEM == 0) continue;
|
||||
|
||||
if (v->faction == f) {
|
||||
if ((mode & GET_POOLED_FORCE)==0) {
|
||||
if (rtype==r_silver && !(f->options & want_sp)) continue;
|
||||
|
|
Loading…
Reference in New Issue