fix: Egzorcyzmy count as Magia Sakralna for spell discipline gate (1.5.2)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E48f1kXhsEbAUxdkNP1yDM
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { matchDiscipline } from '../../src/logic/spell-validation';
|
||||
|
||||
describe('matchDiscipline: Magia Sakralna - Egzorcyzmy', () => {
|
||||
it('an exorcist counts as Sacred Magic for casting', () => {
|
||||
expect(matchDiscipline('sacredExorcism', 'sacred')).toBe(true);
|
||||
expect(matchDiscipline('Magia Sakralna - Egzorcyzmy', 'sacred')).toBe(true);
|
||||
expect(matchDiscipline('Egzorcyzmy', 'Magia Sakralna')).toBe(true);
|
||||
});
|
||||
|
||||
it('a plain Sacred mage is not an exorcist', () => {
|
||||
expect(matchDiscipline('sacred', 'sacredExorcism')).toBe(false);
|
||||
expect(matchDiscipline('Magia Sakralna', 'egzorcyzmy')).toBe(false);
|
||||
});
|
||||
|
||||
it('does not leak into other disciplines', () => {
|
||||
expect(matchDiscipline('sacredExorcism', 'witch')).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user