Follow up to 472b885ca83627922d2c2208b46ff6d9b8308a7d

* Added brackets after if
This commit is contained in:
Jittapan Pluemsumran 2016-08-22 22:44:13 +07:00
parent 472b885ca8
commit eb8ea91f5b
No known key found for this signature in database
GPG Key ID: CE430096446F41D9

View File

@ -319,11 +319,12 @@ function script F_CashReduceStat {
if((readparam(.@type) + .@amount) < 1) return;
if(.@itemid)
if(.@itemid) {
if(countitem(.@itemid))
delitem .@itemid,1;
else
return;
}
StatusPoint += needed_status_point(.@type, .@amount);
statusup2 .@type,.@amount;
return;