@LabelIndex 104524
@StringIndex 0
class 0 party_private_demonic_swordman_oracle : party_private_warrior_oracle {
parameter:
	int	W_LongRangeDDMagic = 458752001;

handler:
	EventHandler ATTACKED(damage,attacker) {
		if( myself::DistFromMe(attacker) >= 100 ) {
			if( myself::Skill_GetConsumeMP(W_LongRangeDDMagic) < myself.sm.mp && myself::Skill_GetConsumeHP(W_LongRangeDDMagic) < myself.sm.hp ) {
				if( myself::Skill_InReuseDelay(W_LongRangeDDMagic) == 0 ) {
					myself::AddUseSkillDesire(attacker,W_LongRangeDDMagic,0,1,1000000);
				} else {
					myself::AddUseSkillDesire(attacker,W_LongRangeDDMagic,0,1,1000000);
				}
			} else {
				myself.i_ai0 = 1;
				myself::AddAttackDesire(attacker,1,1000);
			}
		}
		super;
	}

	EventHandler SEE_CREATURE(creature,party0) {
		party0 = gg::GetParty(creature);
		myself.i_ai1 = myself::GetTick();
		if( myself::IsNullParty(party0) == 0 ) {
			if( gg::Rand(100) < 50 ) {
				if( myself::Skill_GetConsumeMP(W_LongRangeDDMagic) < myself.sm.mp && myself::Skill_GetConsumeHP(W_LongRangeDDMagic) < myself.sm.hp ) {
					if( myself::Skill_InReuseDelay(W_LongRangeDDMagic) == 0 ) {
						myself::AddUseSkillDesire(creature,W_LongRangeDDMagic,0,1,1000000);
					} else {
						myself::AddUseSkillDesire(creature,W_LongRangeDDMagic,0,1,1000000);
					}
				} else {
					myself.i_ai0 = 1;
					myself::AddAttackDesire(creature,1,1000);
				}
			}
		} else if( gg::Rand(100) < 20 ) {
			if( myself::Skill_GetConsumeMP(W_LongRangeDDMagic) < myself.sm.mp && myself::Skill_GetConsumeHP(W_LongRangeDDMagic) < myself.sm.hp ) {
				if( myself::Skill_InReuseDelay(W_LongRangeDDMagic) == 0 ) {
					myself::AddUseSkillDesire(creature,W_LongRangeDDMagic,0,1,1000000);
				} else {
					myself::AddUseSkillDesire(creature,W_LongRangeDDMagic,0,1,1000000);
				}
			} else {
				myself.i_ai0 = 1;
				myself::AddAttackDesire(creature,1,1000);
			}
		}
	}

}
