fix(valentine): what? cards aren't getting added to array first time,
only 2nd+. Maybe an issue with markModified?
This commit is contained in:
@@ -479,7 +479,7 @@ api.spells =
|
||||
t.achievements.valentine ?= 0
|
||||
t.achievements.valentine++
|
||||
(target.items.special.valentineReceived ?= []).push user.profile.name
|
||||
target.markModified? 'items.special.valentineReceived'
|
||||
target.markModified? 'items.special'
|
||||
user.stats.gp -= 10
|
||||
|
||||
# Intercept all spells to reduce user.stats.mp after casting the spell
|
||||
|
||||
Reference in New Issue
Block a user