1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Prepare battle log for spell-cast on server side.

This commit is contained in:
AlexVinS
2016-09-10 18:23:55 +03:00
parent f8767a6380
commit 62abde6c46
13 changed files with 132 additions and 118 deletions

View File

@@ -1243,6 +1243,11 @@ const PlayerColor CStack::getOwner() const
return owner;
}
void CStack::getCasterName(MetaString & text) const
{
//always plural name in case of spell cast.
text.addReplacement(MetaString::CRE_PL_NAMES, type->idNumber.num);
}
bool CMP_stack::operator()( const CStack* a, const CStack* b )
{