Prechádzať zdrojové kódy

Minor fix.

A general issue: "shooter" artifacts should display bonus only for shooting creatures.
DjWarmonger 14 rokov pred
rodič
commit
d4ed4cf9a0
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      lib/CArtHandler.cpp

+ 1 - 1
lib/CArtHandler.cpp

@@ -637,7 +637,7 @@ void CArtHandler::addBonuses()
 	giveArtBonus(89,Bonus::EARTH_SPELLS,0);//Tome of Earth Magic
 
 	giveArtBonus(90,Bonus::WATER_WALKING, 0, 1);//Boots of Levitation
-	giveArtBonus(91,Bonus::NO_SHOTING_PENALTY,0);//Golden Bow
+	giveArtBonus(91,Bonus::NO_SHOTING_PENALTY,0, 0, 0, new HasAnotherBonusLimiter(Bonus::SHOOTER));//Golden Bow
 	giveArtBonus(92,Bonus::SPELL_IMMUNITY,0,35);//Sphere of Permanence
 	giveArtBonus(93,Bonus::NEGATE_ALL_NATURAL_IMMUNITIES,0);//Orb of Vulnerability