1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

vcmi: remove SPECIAL_BLESS_DAMAGE bonus

It is handled by HAS_ANOTHER_BONUS_LIMITER with SPELL_EFFECT limiter
with desired spell id (bless). Yes, bonus will come from HERO_SPECIAL,
but will work only for blessed with spell id creatures.
This commit is contained in:
Konstantin
2023-03-05 21:50:58 +03:00
parent a943d2cb12
commit 96c40eb36e
5 changed files with 24 additions and 20 deletions

View File

@@ -604,12 +604,16 @@ std::vector<std::shared_ptr<Bonus>> SpecialtyInfoToBonuses(const SSpecialtyInfo
result.push_back(bonus);
break;
case 6: //damage bonus for bless (Adela)
bonus->type = Bonus::SPECIAL_BLESS_DAMAGE;
bonus->subtype = spec.subtype; //spell id if you ever wanted to use it otherwise
bonus->additionalInfo = spec.additionalinfo; //damage factor
bonus->updater.reset(new TimesHeroLevelUpdater());
result.push_back(bonus);
break;
{
auto limiter = std::make_shared<HasAnotherBonusLimiter>(Bonus::GENERAL_DAMAGE_PREMY,Bonus::SPELL_EFFECT);
limiter->sid = spec.subtype; //spell id if you ever wanted to use it otherwise
limiter->isSourceIDRelevant = true;
bonus->type = Bonus::GENERAL_DAMAGE_PREMY;
bonus->updater.reset(new TimesHeroLevelUpdater());
bonus->addLimiter(limiter);
result.push_back(bonus);
break;
}
case 7: //maxed mastery for spell
bonus->type = Bonus::SPECIAL_FIXED_VALUE_ENCHANT;
bonus->subtype = spec.subtype; //spell id