@LabelIndex 37857
@StringIndex 0
class 0 royal_rush_wizard_clanbuff : royal_rush_wizard_ddmagic2 {
parameter:
	int	W_ClanBuff = 272039937;

handler:
	EventHandler CLAN_ATTACKED(attacker,victim,damage,i6,h0) {
		myself::RemoveAllHateInfoIF(1,0);
		if( ( myself::GetLifeTime() > 7 && ( attacker.is_pc != 0 || myself::IsInCategory(12,attacker.class_id) ) ) && myself::GetHateInfoCount() == 0 ) {
			if( myself::Skill_GetConsumeMP(W_ClanBuff) < myself.sm.mp && myself::Skill_GetConsumeHP(W_ClanBuff) < myself.sm.hp ) {
				if( myself::Skill_InReuseDelay(W_ClanBuff) == 0 ) {
					myself::AddUseSkillDesire(attacker,W_ClanBuff,0,1,1000000);
				} else {
					myself::AddUseSkillDesire(attacker,W_ClanBuff,0,1,1000000);
				}
			} else {
				myself.i_ai0 = 1;
				myself::AddAttackDesire(attacker,1,1000);
			}
		}
		super;
	}

}
