forked from github/server
drain_exp an den alten erwartungswert wieder angepasst.
This commit is contained in:
parent
451542789f
commit
e8545f9c64
|
@ -976,7 +976,9 @@ drain_exp(unit *u, int n)
|
||||||
}
|
}
|
||||||
if (sk != NOSKILL) {
|
if (sk != NOSKILL) {
|
||||||
n = min(n, get_skill(u, sk));
|
n = min(n, get_skill(u, sk));
|
||||||
change_skill(u, sk, -1);
|
if (learn_skill(u, sk, n) {
|
||||||
|
change_skill(u, sk, -1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue