@LabelIndex 219838
@StringIndex 0
class 0 c_pailaka_invader_fist : ai_castle_pailaka_invader_boss {
handler:
	EventHandler MY_DYING(always_list,code_info,i0,i1,i9,last_attacker,lparty,member,random1_list,target) {
		always_list = gg::AllocCodeInfoList();
		random1_list = gg::AllocCodeInfoList();
		target = last_attacker;
		if( gg::HaveMemo(target,727) == 1 && gg::GetMemoState(target,727) == 1 ) {
			always_list::SetInfo(0,target);
		}
		if( gg::HaveMemo(target,727) == 1 && gg::GetMemoState(target,727) == 1 ) {
			always_list::SetInfo(0,target);
		}
		if( gg::IsNull(lparty) == 0 ) {
			for(i9 = 0; i9 < lparty.member_count; i9++) {
				target = myself::GetMemberOfParty(lparty,i9);
				if( gg::HaveMemo(target,727) == 1 && gg::GetMemoState(target,727) == 1 ) {
					always_list::SetInfo(0,target);
				}
			}
		}
		while( gg::IsNull(code_info = always_list::Next()) == 0 ) {
			switch(code_info.code) {
				case 0: {
					myself::SetCurrentQuestID(727);
					while( gg::IsNull(target = code_info::Next()) == 0 ) {
						if( myself::DistFromMe(target) <= 1500 ) {
							myself::SetCurrentQuestID(727);
							myself::SetMemoState(target,727,2);
						}
					}
					break;
				}
			}
		}
		code_info = random1_list::RandomSelectOne();
		if( gg::IsNull(code_info) == 0 ) {
			switch (code_info.code) {
			}
		}
		super;
	}

}
