Skip to content
Permalink
Browse files

skip bardsong.spl level check

  • Loading branch information
burner1024 committed Dec 29, 2019
1 parent b810a20 commit fb183738a11e97bef03a3321f12acaaab43e471b
Showing with 6 additions and 4 deletions.
  1. +6 −4 happy/spl/gen_fix/innate_to_level_1.tpp
@@ -2,9 +2,11 @@
READ_SHORT 0x1c "spell_type"
READ_LONG 0x34 "spell_level"

PATCH_IF (%spell_type% = 4) BEGIN
PATCH_IF (%spell_level% != 1) BEGIN
PATCH_PRINT "HE10: %SOURCE_FILE% - Innate Spell is not Level 1! Setting level to 1..."
WRITE_LONG 0x34 ~1~
PATCH_IF SOURCE_FILE != ~bardsong.spl~ //TobEx externalizes this, but I don't think it's called from scripts
PATCH_IF (%spell_type% = 4) BEGIN
PATCH_IF (%spell_level% != 1) BEGIN
PATCH_PRINT "HE10: %SOURCE_FILE% - Innate Spell is not Level 1! Setting level to 1..."
WRITE_LONG 0x34 ~1~
END
END
END

0 comments on commit fb18373

Please sign in to comment.
You can’t perform that action at this time.