Check for max mana != 0 for spell casters.
This commit is contained in:
parent
061def79f7
commit
70ba76034e
1 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue