Sfoglia il codice sorgente

vcmi: add artifact component to second grail msg

Konstantin 2 anni fa
parent
commit
4c31db52be
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      server/CGameHandler.cpp

+ 1 - 0
server/CGameHandler.cpp

@@ -6057,6 +6057,7 @@ bool CGameHandler::dig(const CGHeroInstance *h)
 		sendAndApply(&iw);
 
 		iw.soundID = soundBase::invalid;
+		iw.components.emplace_back(Component::EComponentType::ARTIFACT, ArtifactID::GRAIL, 0, 0);
 		iw.text.clear();
 		iw.text.addTxt(MetaString::ART_DESCR, ArtifactID::GRAIL);
 		sendAndApply(&iw);