@LabelIndex 109316
@StringIndex 12926
class 0 raid_boss_fortress_bow : warrior_fortress_officer {
parameter:
	int	skill00_id = 458752001;
	int	skill00_prob = 33;
	int	focus_group = 3;
	int	msg_see_creature = -1;
	int	msg_see_spell = -1;

handler:
	EventHandler SEE_CREATURE(creature) {
		super;
		if( creature.is_pc != 0 && gg::Rand(100) < skill00_prob && myself::IsInCategory(focus_group,creature.occupation) == 1 ) {
			if( msg_see_creature > 0 ) {
				myself::Shout(gg::MakeFString(msg_see_creature,"","","","",""));
			}
			myself::RemoveAllAttackDesire();
			if( myself::Skill_GetConsumeMP(skill00_id) < myself.sm.mp && myself::Skill_GetConsumeHP(skill00_id) < myself.sm.hp && myself::Skill_InReuseDelay(skill00_id) == 0 ) {
				myself::AddUseSkillDesire(creature,skill00_id,0,1,1000000);
			}
		}
	}

	EventHandler SEE_SPELL(speller) {
		super;
		if( speller.is_pc != 0 && gg::Rand(100) < skill00_prob && myself::IsInCategory(focus_group,speller.occupation) == 1 ) {
			if( msg_see_spell > 0 ) {
				myself::Shout(gg::MakeFString(msg_see_spell,"","","","",""));
			}
			if( myself::Skill_GetConsumeMP(skill00_id) < myself.sm.mp && myself::Skill_GetConsumeHP(skill00_id) < myself.sm.hp && myself::Skill_InReuseDelay(skill00_id) == 0 ) {
				myself::AddUseSkillDesire(speller,skill00_id,0,1,1000000);
			}
		}
	}

}
