diff --git a/common/scripted_effects/wc_magic_effects.txt b/common/scripted_effects/wc_magic_effects.txt index 10f4a853af..b16a5d6471 100644 --- a/common/scripted_effects/wc_magic_effects.txt +++ b/common/scripted_effects/wc_magic_effects.txt @@ -361,12 +361,25 @@ spell_cast_effect = { VALUE = wc_spell_$SPELL$_cost_mana_value } + if = { + limit = { + spell_is_ritual_trigger = { + SPELL = flag:$SPELL$ + } + } + add_character_flag = { + flag = any_ritual_cd + days = wc_spell_cooldown_ritual + } + } + # Save Variables so when the event triggers they wont be lost set_variable = { name = $SPELL$_rank value = $RANK$ } + if = { limit = { exists = var:spell_recipient @@ -1139,18 +1152,6 @@ put_spell_on_cooldown_effect = { target = flag:$SPELL$ } - if = { - limit = { - spell_is_ritual_trigger = { - SPELL = flag:$SPELL$ - } - } - add_character_flag = { - flag = any_ritual_cd - days = wc_spell_cooldown_ritual - } - } - set_variable = { name = $SPELL$_cd value = wc_spell_$SPELL$_cooldown_value