Follow up to 472b885ca83627922d2c2208b46ff6d9b8308a7d
* Added brackets after if
This commit is contained in:
parent
472b885ca8
commit
eb8ea91f5b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user