From 7a4afc46a2d7ddda04811723ac7eaa86c13b451a Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Sun, 22 Dec 2024 21:23:31 +0100 Subject: [PATCH] fix OPENING_BATTLE_SPELL --- client/windows/CCreatureWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/windows/CCreatureWindow.cpp b/client/windows/CCreatureWindow.cpp index ef8e5c483..536a0849a 100644 --- a/client/windows/CCreatureWindow.cpp +++ b/client/windows/CCreatureWindow.cpp @@ -39,6 +39,7 @@ #include "../../lib/networkPacks/ArtifactLocation.h" #include "../../lib/texts/CGeneralTextHandler.h" #include "../../lib/texts/TextOperations.h" +#include "../../lib/bonuses/Propagators.h" class CCreatureArtifactInstance; class CSelectableSkill; @@ -856,6 +857,9 @@ void CStackWindow::initBonusesList() bonusInfo.imagePath = info->stackNode->bonusToGraphics(b); bonusInfo.bonusSource = b->source; + if(b->sid.getNum() != info->stackNode->getId() && b->propagator && b->propagator->getPropagatorType() == CBonusSystemNode::HERO) // Shows bonus with "propagator":"HERO" only at creature with bonus + continue; + //if it's possible to give any description or image for this kind of bonus //TODO: figure out why half of bonuses don't have proper description if(!bonusInfo.name.empty() || !bonusInfo.imagePath.empty())