Skip to content

Commit 3efb412

Browse files
committed
Uncheese mislead: disable attacks, ref https://forums.bgforge.net/viewtopic.php?p=2555#p2555
1 parent d68ea6a commit 3efb412

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tnt/components/uncheese_mislead/main.tpa

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ COPY_EXISTING ~mislead.spl~ ~override/%mislead_spell%.spl~
2727
parameter1 = 20 // %
2828
parameter2 = CURRENT_HP_MOD_TYPE_percentage
2929
END
30+
// Disable physical attacks
31+
LPF ADD_SPELL_EFFECT
32+
INT_VAR
33+
opcode = OPCODE_attacks_per_round_mod
34+
insert_point = 1
35+
target = TARGET_FX_self
36+
parameter1 = 0 // value: no attacks
37+
parameter2 = 1 // mode: set to value
38+
timing = TIMING_permanent
39+
END
3040
// Some buttons are still enabled with fixpack, for some reason. Disabling them.
3141
PATCH_FOR_EACH btn IN
3242
BUTTON_use_item

0 commit comments

Comments
 (0)