1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +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

@ -953,6 +953,13 @@ const PlayerColor CGHeroInstance::getOwner() const
return tempOwner;
}
void CGHeroInstance::getCasterName(MetaString & text) const
{
//FIXME: use local name, MetaString need access to gamestate as hero name is part of map object
text.addReplacement(name);
}
bool CGHeroInstance::canCastThisSpell(const CSpell * spell) const
{
if(nullptr == getArt(ArtifactPosition::SPELLBOOK))

View File

@ -246,6 +246,8 @@ public:
const PlayerColor getOwner() const override;
void getCasterName(MetaString & text) const override;
void deserializationFix();
void initObj() override;