Check for max mana != 0 for spell casters.

This commit is contained in:
johns 2002-08-01 19:11:08 +00:00
parent 061def79f7
commit 70ba76034e

View file

@ -441,6 +441,13 @@ global void ParsePudUDTA(const char* udta,int length __attribute__((unused)))
if( BIT(31,v) ) DebugLevel0("Unused bit 31 used in %d\n" _C_ i);
#endif
#undef BIT
//
// Unit type checks.
//
if( unittype->CanCastSpell && !unittype->_MaxMana ) {
DebugLevel0Fn("%s: Need max mana value\n" _C_ unittype->Ident);
unittype->_MaxMana=255;
}
}
// FIXME: peon applies also to peon-with-gold and peon-with-wood
@ -448,6 +455,7 @@ global void ParsePudUDTA(const char* udta,int length __attribute__((unused)))
DebugLevel0("\tUDTA used %d bytes\n" _C_ udta-start);
UpdateStats();
}