mattgodbolt / xania

Xania MUD source
Other
58 stars 13 forks source link

Spells with Ignore, CharOther and CharObject are not targeting properly #295

Closed snellers closed 2 years ago

snellers commented 2 years ago

If you cast summon it fails to summon the selected player. This is because I broke targeting when refactoring do_cast and introduced the SpellTarget type last year. It definitely affects: summon gate undo spell

Cursory testing indicates that it doesn't affect object based spells, which go via the recite, zap and brandish commands. Those all have custom arg parsing to identify a target anyway and the target name does get passed through to the spell.

snellers commented 2 years ago

Thanks to @stridera for reporting this and investigating!