Corrected one setcastledata call that I missed in r11915

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12116 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
ultramage 2008-01-20 22:22:36 +00:00
parent b4a3bad556
commit 4cd9a940e5
2 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,7 @@
Date Added Date Added
====== ======
2008/01/20
* Corrected one setcastledata call that I missed in r11915
2008/01/19 2008/01/19
* Fixed a bad countitem in cross band quest. (bugreport:840) [Samuray22] * Fixed a bad countitem in cross band quest. (bugreport:840) [Samuray22]
2008/01/13 2008/01/13

View File

@ -160,14 +160,13 @@ function script F_AgitBreak {
disablenpc "Kafra Staff#"+.@castle$; disablenpc "Kafra Staff#"+.@castle$;
// Set data to be cleared from the castle // remove investment data and kafra
// If the new owning guild doesn't have have for( set .@i, 4; .@i <= 9; set .@i, .@i+1 )
// Guardian Research erase all guardian data. SetCastleData .@map$, .@i, 0;
// Otherwise remove investment data and kafra.
if (getgdskilllv(.@GID,10002) == 0) set .@data,25;
else set .@data,9;
for( set .@i, 4; .@i <= .@data; set .@i, .@i+1 ) // if the new guild doesn't have Guardian Research, erase guardians
if( getgdskilllv(.@GID,10002) == 0 )
for( set .@i, 10; .@i <= 17; set .@i, .@i+1 )
SetCastleData .@map$, .@i, 0; SetCastleData .@map$, .@i, 0;
return; return;