fix(valentine): what? cards aren't getting added to array first time,

only 2nd+. Maybe an issue with markModified?
This commit is contained in:
Tyler Renelle
2014-02-13 23:09:00 -07:00
parent 608b829d7e
commit a6b2191927
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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