Check for max mana != 0 for spell casters.
This commit is contained in:
parent
881148c4ca
commit
22ae211548
1 changed files with 8 additions and 0 deletions
|
@ -381,6 +381,14 @@ local SCM CclDefineUnitType(SCM list)
|
|||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Unit type checks.
|
||||
//
|
||||
if( type->CanCastSpell && type->_MaxMana ) {
|
||||
DebugLevel0Fn("%s: Need max mana value\n" _C_ type->Ident);
|
||||
type->_MaxMana=1;
|
||||
}
|
||||
|
||||
return SCM_UNSPECIFIED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue