diff options
Diffstat (limited to 'db/re/item_db.conf')
-rw-r--r-- | db/re/item_db.conf | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf index ba5649b13..5b2637555 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -185,11 +185,13 @@ item_db: ( UseEffect: "EFFECT_HEAL" Script: <" if (@useType == 1) { - if (!getmapxy(.@map$, .@x, .@y, 0)) { - if (rand(1,10) != 3) - monster(.@map$, .@x, .@y, l("Oak"), 1017, 1); - else - monster(.@map$, .@x, .@y, l("Not An Oak"), SpringSquirrel, 1); + getmapxy(.@map$, .@x, .@y, 0); + if (rand(1,10) != 3) { + monster(.@map$, .@x, .@y, l("Oak"), 1017, 1); + $TREE_PLANTED=$TREE_PLANTED+1; + callfunc "SaggyScoreUpdate", 1; + } else { + monster(.@map$, .@x, .@y, l("Not An Oak"), SpringSquirrel, 1); } } else { @type = 0; |