Browse Source

Fixed Adela's Bless specialty

Ivan Savenko 2 years ago
parent
commit
4a09dc0757
2 changed files with 2 additions and 2 deletions
  1. 1 1
      lib/HeroBonus.h
  2. 1 1
      lib/spells/effects/Timed.cpp

+ 1 - 1
lib/HeroBonus.h

@@ -236,7 +236,7 @@ public:
 	BONUS_NAME(MANA_CHANNELING) /*value in %, eg. familiar*/ \
 	BONUS_NAME(SPELL_LIKE_ATTACK) /*subtype - spell, value - spell level; range is taken from spell, but damage from creature; eg. magog*/ \
 	BONUS_NAME(THREE_HEADED_ATTACK) /*eg. cerberus*/	\
-	BONUS_NAME(UNUSED_BONUS_ENTRY)						\
+	BONUS_NAME(GENERAL_DAMAGE_PREMY)						\
 	BONUS_NAME(FIRE_IMMUNITY)	/*subtype 0 - all, 1 - all except positive, 2 - only damage spells*/						\
 	BONUS_NAME(WATER_IMMUNITY)							\
 	BONUS_NAME(EARTH_IMMUNITY)							\

+ 1 - 1
lib/spells/effects/Timed.cpp

@@ -141,7 +141,7 @@ void Timed::apply(ServerCallback * server, const Mechanics * m, const EffectTarg
 		if(casterHero && casterHero->hasBonusOfType(Bonus::SPECIAL_BLESS_DAMAGE, m->getSpellIndex())) //TODO: better handling of bonus percentages
 		{
 			int damagePercent = casterHero->valOfBonuses(Bonus::SPECIAL_BLESS_DAMAGE, m->getSpellIndex()) / tier;
-			Bonus specialBonus(Bonus::N_TURNS, Bonus::CREATURE_DAMAGE, Bonus::SPELL_EFFECT, damagePercent, m->getSpellIndex(), 0, Bonus::PERCENT_TO_ALL);
+			Bonus specialBonus(Bonus::N_TURNS, Bonus::GENERAL_DAMAGE_PREMY, Bonus::SPELL_EFFECT, damagePercent, m->getSpellIndex());
 			specialBonus.turnsRemain = duration;
 			buffer.push_back(specialBonus);
 		}