@LabelIndex 52550
@StringIndex 0
class 0 party_private_wizard_for_friend : party_private_wizard_dd2 {
parameter:
	int	CreatureID = 0;

handler:
	EventHandler CREATED() {
		myself.i_ai4 = 0;
		myself.sm.flag = CreatureID;
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		if( timer_id == 4051 ) {
			if( myself.i_ai4 == 1 ) {
				myself::LookNeighbor(300);
				myself::AddTimerEx(4051,( ( 3 * 60 ) * 1000 ));
			}
		}
		super;
	}

	EventHandler SEE_CREATURE(creature,i0,f0) {
		if( creature.flag == myself.sm.flag ) {
			myself.i_ai4 = 0;
		} else {
			myself::AddAttackDesire(creature,1,1000);
			super;
		}
	}

	EventHandler PARTY_ATTACKED(attacker,private,damage,f0) {
		if( private != myself.sm ) {
			myself.i_ai4 = 1;
			myself::AddAttackDesire(attacker,1,1000);
		}
		super;
	}

	EventHandler ATTACKED(attacker) {
		if( attacker.flag != myself.sm.flag ) {
			myself::AddAttackDesire(attacker,1,1000);
			super;
		}
	}

}
