Skip to content

Commit

Permalink
Follow up to 472b885
Browse files Browse the repository at this point in the history
* Added brackets after if
  • Loading branch information
Jittapan Pluemsumran committed Aug 22, 2016
1 parent 472b885 commit eb8ea91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion npc/other/CashShop_Functions.txt
Expand Up @@ -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;
Expand Down

0 comments on commit eb8ea91

Please sign in to comment.