Damage vs type bonus

Damage vs. type bonus is a status effect predominantly used in the original edition of Baldur's Gate II, but still present in all games including Siege of Dragonspear. It is a damage modifier that only kicks in against a certain type of enemies, typically targeting race, class or alignment.
It is usually granted either as a passive class bonus like an Undead Hunter's or as a passive damage boost provided by an item as long as it stays equipped.
Enhanced Editions make little use of this status effect, as the targeting feature can usually be achieved in other ways.
==Mechanics==
This special kind of damage bonus only comes into play as weapon or fist damage. It gets doubled by critical hits just like natural weapon damage, but isn't affected by the backstab multiplier. The combat logs do not list this damage separately from natural weapon damage, and the damage estimation in the inventory screen of Enhanced Editions ignores it.
When dual wielding, the bonus is applied to both hands even when it is granted by one of the weapons.
Unlike other types of damage bonuses, only one instance of this effect can be used to increase damage in any given attack. So when an attacker is benefiting from a +3 vs. Dragons and a +6 vs Chaotic-aligned creatures, hitting a chaotic-aligned dragon will not result in a +9 bonus, but in either +3 or +6.
===Effect precedence===
Will it be +3 or +6? The bonus that "wins" is the oldest one to be evaluated by the game. This goes opposite to most other non-stacking effects, where the newest effect to be evaluated wins. Oldest equipped is either just that or the first slot to be evaluated whenever the game reevaluates all equipment. In that case, from oldest to newest it goes: helm, armor, off-hand, bracers, right ring, left ring, amulet, belt, boots, cloak, main hand, magically-created weapon, first active spell effects, second active spell effects, etc.
Additionally, as far as Damage vs. type bonus is concerned, equipped items win over the Undead Hunter and Cavalier's class kit passives which get overridden.
==Sources of Damage vs type bonus==
<tabber>Enhanced Editions=
 In Enhanced Editions
Source 	Bonus	Creatures targeted
Barrityl's Burden	-5 	Genie race
Blightbringer 	+2 	Dwarven race
Modron Heart 	+2 	Chaotic-aligned
Wolfsbane Charm 	+2 	Lycanthrope race
|-|Original editions=
 In the original editions
Source 	Bonus 	Creatures targeted
Azuredge 	+1d6+2 	Undead
Bone Club 	+1 	Undead
Carsomyr 	+5 or +6	Chaotic evil
Daystar 	+2 	Evil-aligned
Daystar 	+1d8+4 	Undead
Dragon's Bane 	+3 	Dragon race
Dwarven Thrower 	+8 	Giant humanoids
Flame of the North 	+2 	Evil-aligned
Foebane 	+6 	Undead
Foebane 	+6 	Doppelganger race
Foebane 	+6 	Lycanthrope race
Foebane 	+6 	Rakshasa race
Foebane 	+6 	Demon race
Kondar 	+2 	Doppelganger race
Kondar 	+2 	Lycanthrope race
Mace of Disruption 	+1d6+2 	Undead
Peridan 	+1d8+2 	Dragon race
Phantom Blade 	+10 	Undead
Purifier 	+4 or +5	Chaotic evil
Runehammer 	+1d6+2 	Undead
Skullcrusher 	+2 	Humanoids
Sword of Balduran (BG1)	+4 	Lycanthrope race
The Equalizer 	+2 	Chaotic neutral
The Equalizer 	+2 	Lawful neutral
The Equalizer 	+4 	Neutral good
The Equalizer 	+4 	Neutral evil
The Equalizer 	+6 	Chaotic evil
The Equalizer 	+6 	Chaotic good
The Equalizer 	+6 	Lawful evil
The Equalizer 	+6 	Lawful good
The Burning Earth 	+1 	Lycanthrope race
The Burning Earth 	+1 	Wraith Sarevok
The Burning Earth 	+2 	Winter Wolves
The Burning Earth 	+3 	Undead
The Kneecapper 	+3 	Giant humanoids
Werebane 	+3 	Lycanthrope race
Wolfsbane Charm 	+2 	Lycanthrope race
</tabber>