From bb0f388f2390270252acfe67db1cd98886427bd1 Mon Sep 17 00:00:00 2001 From: AlexVinS Date: Wed, 14 Jun 2017 11:41:36 +0300 Subject: [PATCH] Cheat 'vcminahar' now give FREE_SHIP_BOARDING bonus https://bugs.vcmi.eu/view.php?id=2092 --- server/CGameHandler.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index fbcdcc7a4..d258e0084 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -6218,6 +6218,13 @@ void CGameHandler::handleCheatCode(std::string & cheat, PlayerColor player, cons smp.hid = hero->id; smp.val = 1000000; sendAndApply(&smp); + + GiveBonus gb(GiveBonus::HERO); + gb.bonus.type = Bonus::FREE_SHIP_BOARDING; + gb.bonus.duration = Bonus::ONE_DAY; + gb.bonus.source = Bonus::OTHER; + gb.id = hero->id.getNum(); + giveHeroBonus(&gb); } else if (cheat == "vcmiformenos") {