forked from github/server
fix accidental redefinition
This commit is contained in:
parent
e1ebf15d31
commit
6f26898822
1 changed files with 1 additions and 13 deletions
14
src/spells.c
14
src/spells.c
|
@ -5748,19 +5748,7 @@ static int sp_eternizewall(castorder * co)
|
||||||
return cast_level;
|
return cast_level;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool change_spellpoints(struct unit *u, int delta) {
|
static magic_t get_magic_type(const struct unit *u) {
|
||||||
sc_mage *mage = get_mage(u);
|
|
||||||
if (mage) {
|
|
||||||
if (mage->spellpoints + delta >= 0) {
|
|
||||||
mage->spellpoints += delta;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
mage->spellpoints = 0;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
static enum magic_t get_magic_type(const struct unit *u) {
|
|
||||||
sc_mage *mage = get_mage(u);
|
sc_mage *mage = get_mage(u);
|
||||||
if (mage) {
|
if (mage) {
|
||||||
return mage->magietyp;
|
return mage->magietyp;
|
||||||
|
|
Loading…
Reference in a new issue