@LabelIndex 25570
@StringIndex 0
class 0 ai_boss07_cannon : warrior_ag_hold_ddmagic {
parameter:
	int	DDMagic = 262209537;
	int	SkillRange = 500;

handler:
	EventHandler CREATED(c0) {
		c0 = gg::GetCreatureFromIndex(myself.sm.param1);
		if( myself::IsNullCreature(c0) == 0 ) {
			if( myself::Skill_GetConsumeMP(DDMagic) < myself.sm.mp && myself::Skill_GetConsumeHP(DDMagic) < myself.sm.hp && myself::Skill_InReuseDelay(DDMagic) == 0 ) {
				myself::AddUseSkillDesire(c0,DDMagic,0,1,1000000);
			}
		}
		myself::AddTimerEx(3001,( 60 * 1000 ));
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		if( timer_id == 3001 ) {
			if( myself.p_state != 3 && myself.p_state != 10 ) {
				myself::Despawn();
			} else {
				myself::AddTimerEx(3001,( 60 * 1000 ));
			}
		}
	}

}
