Skip to content

Commit

Permalink
Fixing dazzling display
Browse files Browse the repository at this point in the history
  • Loading branch information
biscuitWizard committed Jan 31, 2023
1 parent f842587 commit 7b69f3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion act.h
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ ACMD_DECL(do_dragonborn_breath_weapon);
ACMDCHECK(can_dragonborn_breath_weapon);
ACMD_DECL(do_tabaxi_claw_attack);
ACMDCHECK(can_tabaxi_claw_attack);
ACMDCHECK(do_dazzling_display);
ACMD_DECL(do_dazzling_display);
ACMDCHECK(can_dazzling_display);
ACMD_DECL(do_blast);
ACMDCHECK(can_eldritch_blast);
Expand Down
5 changes: 1 addition & 4 deletions spell_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,10 @@ int call_magic(struct char_data *caster, struct char_data *cvict,
{
case CLASS_WARLOCK:
case CLASS_BARD:
int max_armor_size = ARMOR_TYPE_LIGHT;
if (HAS_FEAT(caster, FEAT_BATTLE_CASTER))
max_armor_size = ARMOR_TYPE_MEDIUM;
if (!canCastAtWill(caster, spellnum))
{
/* bards & warlocks can wear light armor and cast unpenalized (bard spells) */
if (compute_gear_armor_type(caster) > max_armor_size ||
if (compute_gear_armor_type(caster) > (HAS_FEAT(caster, FEAT_BATTLE_CASTER) ? ARMOR_TYPE_MEDIUM : ARMOR_TYPE_LIGHT) ||
compute_gear_shield_type(caster) > ARMOR_TYPE_SHIELD)
if (rand_number(1, 100) <= compute_gear_spell_failure(caster))
{
Expand Down

0 comments on commit 7b69f3e

Please sign in to comment.