Warlock subclass

- Posted in Coding by

The warlock receives his pact blade upon first entering the Warlock class. This blade counts as a +3 weapon solely for the purpose of making touch and ranged touch attacks.

The party boon a warlock confers upon companions is that they receive 1 HP every time the warlock's pact blade inflicts damage.

The personal boon a warlock begins enjoying at Warlock 3: when your pact blade inflicts damage, you receive half the amount (rounded down) as restored Hit Points. If HP are already at maximum, instead gain these as temporary HP.

Regardless of whether the warlock is wielding the pact blade, whenever the warlock is struck in melee combat, the pact blade magically inflicts X damage on the attacker, where X is equal to the Warlock's total caster levels — as long as the pact blade is worn upon the warlock's person or carried in a pouch or backpack.

Area effect spells that include the warlock as one of multiple targets do not provoke this pact blade response, but spells targeted directly on the warlock do, as do ranged and melee attacks targeting the warlock.

At Warlock 2, the Warlock gains resistance to a damage type of his choice from the following list: radiant, necrotic, puncturing, slashing, bludgeoning, fire, cold, electricity, acid, and force.

At Warlock 4, the Warlock gains resistance to another damage type, not previously selected, from the foregoing list.

At the 5th and final level of Warlock, the warlock gains a permanent boon from its patron. Examples of such boons are the following at-will or automatic effects: regeneration 3, assume gaseous form, dispel magic 15' radius (as if cast by the warlock's patron), an AC improvement of 3, the ability to fly, or petrification. At Warlock 10, the warlock gains another boon from its patron, or increases the potency of an existing boon.

Warlocks may sacrifice prepared spells from other classes' spell lists to power their warlock spells.

Some patrons bestow lesser and or greater boons upon their warlocks at Warlock 1.