Skip to content

Optional Code: Warn When Equipping Magical Gear

spiritlake edited this page Feb 19, 2022 · 1 revision

Allows combat to emit a warning when someone equips magical gear without casting a spell.

It does not stop players from equipping the gear, but instead alerts those involved that it should not be done without the presumption that a spell has been cast. This is frequently handy for minimizing the number of 'set-up' rounds in which players cast spells they would have active in preparation for combat.


In plugins\fs3combat\commands\gear\combat_armor_cmd.rb add the following directly after handle:

Magic.warn_if_magic_gear(self.armor)

In plugins\fs3combat\commands\gear\combat_weapon_cmd.rb add the following directly after handle:

Magic.warn_if_magic_gear(self.weapon)
Clone this wiki locally