Fixed a bug in r11633 always spawning only 1 chest type

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11874 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
ultramage 2007-12-09 08:05:22 +00:00
parent e816cafde6
commit 7dc104912b
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
Date Added
======
2007/12/09
* Fixed a bug in r11633 always spawning only 1 chest type [ultramage]
2007/12/08
* Removed double tabs from mapflag/warp/script/function/duplicate declarations. [FlavioJS]
2007/12/02

View File

@ -77,7 +77,7 @@ function script F_GldTreas {
}
for (set .@i,1; .@i <= getarg(3) ; set .@i,.@i+1) {
// set treasure box ID
set getarg(4), getarg(5)+((getarg(3)+1) & 1);
set getarg(4), getarg(5) + (.@i+1) % 2;
areamonster getarg(0),getarg(6),getarg(7),getarg(8),getarg(9),"Treasure Chest",getarg(4),1,"Treasure_"+getarg(1)+"::OnDied";
}
return;