1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix quest

This commit is contained in:
nordsoft 2023-09-28 02:51:58 +02:00
parent 3c2549d905
commit 40af83a55c

View File

@ -632,10 +632,13 @@ void CQuest::addReplacements(MetaString &out, const std::string &base) const
switch(missionType)
{
case MISSION_KILL_CREATURE:
out.replaceCreatureName(stackToKill);
if (std::count(base.begin(), base.end(), '%') == 2) //say where is placed monster
if(stackToKill.type)
{
out.replaceRawString(VLC->generaltexth->arraytxt[147+stackDirection]);
out.replaceCreatureName(stackToKill);
if (std::count(base.begin(), base.end(), '%') == 2) //say where is placed monster
{
out.replaceRawString(VLC->generaltexth->arraytxt[147+stackDirection]);
}
}
break;
case MISSION_KILL_HERO: