Skip to content

Commit

Permalink
cant cast multiple rituals at once
Browse files Browse the repository at this point in the history
  • Loading branch information
helloruhe committed Sep 16, 2024
1 parent bb154b9 commit 1aee971
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions common/scripted_effects/wc_magic_effects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1aee971

Please sign in to comment.