forked from github/server
"Kampfallianzen fehlerhaft" New units must not be added to a group in another faction, ever.
This commit is contained in:
parent
33da72e28a
commit
91ece491e5
3 changed files with 5 additions and 5 deletions
|
@ -51,9 +51,9 @@ enum {
|
|||
MAX_POTIONS
|
||||
};
|
||||
|
||||
void herbsearch(struct region * r, struct unit * u, int max);
|
||||
int use_potion(struct unit * u, const struct item_type * itype, int amount, struct order *);
|
||||
void init_potions(void);
|
||||
extern void herbsearch(struct region * r, struct unit * u, int max);
|
||||
extern int use_potion(struct unit * u, const struct item_type * itype, int amount, struct order *);
|
||||
extern void init_potions(void);
|
||||
|
||||
extern int get_effect(const struct unit * u, const struct potion_type * effect);
|
||||
extern int change_effect(struct unit * u, const struct potion_type * effect, int value);
|
||||
|
|
|
@ -1382,7 +1382,7 @@ create_unit(region * r, faction * f, int number, const struct race *urace, int i
|
|||
}
|
||||
|
||||
/* Gruppen */
|
||||
if (fval(creator, UFL_GROUP)) {
|
||||
if (creator->faction==f && fval(creator, UFL_GROUP)) {
|
||||
a = a_find(creator->attribs, &at_group);
|
||||
if (a) {
|
||||
group * g = (group*)a->data.v;
|
||||
|
|
|
@ -1584,7 +1584,7 @@ sp_undeadhero(fighter * fi, int level, double power, spell * sp)
|
|||
setstatus(u, du->status);
|
||||
setguard(u, GUARD_NONE);
|
||||
|
||||
/* inheit stealth from magician */
|
||||
/* inherit stealth from magician */
|
||||
if (fval(mage, UFL_PARTEITARNUNG)) {
|
||||
fset(u, UFL_PARTEITARNUNG);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue