using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x0200007E RID: 126
[Token(Token = "0x200007E")]
public class AI_GhostD_Lightning : AI_GhostD
{
	// Token: 0x06000537 RID: 1335 RVA: 0x0000C664 File Offset: 0x0000A864
	[Token(Token = "0x6000537")]
	[Address(RVA = "0x181D5C0", Offset = "0x181C5C0", VA = "0x18181D5C0", Slot = "40")]
	protected override void InitFightingType(AI_GhostD.AIFighting Type)
	{
		WizardGirlManage g_WM = this.g_WM;
		this.g_Fightting = Type;
		if (!g_WM.GetIsDead() && Game.sceneManager.stageState != SceneManager.GameState.Script)
		{
			AI_GhostD.AIFighting g_Fightting = this.g_Fightting;
			if (g_Fightting == AI_GhostD.AIFighting.WatchFirst)
			{
				int num = 0;
				this.g_fTrackTime = 30f;
				this.g_fWaitTime = (float)num;
				return;
			}
			if (g_Fightting != AI_GhostD.AIFighting.WatchFirst)
			{
				if (g_Fightting != AI_GhostD.AIFighting.WatchFirst)
				{
					if (g_Fightting == AI_GhostD.AIFighting.Watch)
					{
						Animator g_Anim = this.g_Anim;
						this.g_fWaitTime = 3.6f;
						int num2 = 0;
						int num3 = 0;
						int num4 = 0;
						g_Anim.CrossFade("LightningAttack", 0.025f, num4, (float)num3);
						this.g_fMoveVal = (float)num2;
						this.g_fPauseMoveTime = 3.6f;
					}
					return;
				}
				GhostDEffectPlay g_Effect = this.g_Effect;
				int num5 = 0;
				this.g_fWaitTime = 3f;
				this.g_fAttackTips = (float)num5;
				g_Effect.PlayEffectCharge();
				return;
			}
		}
		else
		{
			this.g_Fightting = (AI_GhostD.AIFighting)((ulong)1L);
		}
		float num6 = UnityEngine.Random.Range(1f, 3f);
		this.g_fWaitTime = num6;
		this.g_fTrackTime = 15f;
	}

	// Token: 0x06000538 RID: 1336 RVA: 0x0000C76C File Offset: 0x0000A96C
	[Token(Token = "0x6000538")]
	[Address(RVA = "0x181D4F0", Offset = "0x181C4F0", VA = "0x18181D4F0", Slot = "41")]
	protected override void FightShot()
	{
		float g_fWaitTime = this.g_fWaitTime;
		int num = 0;
		if (g_fWaitTime <= (float)num)
		{
			this.g_Effect.StopEffLightningAttack();
			this.InitFightingType((AI_GhostD.AIFighting)((uint)1));
			Animator g_Anim = this.g_Anim;
			int num2 = 0;
			g_Anim.CrossFade("LightningAttack_End", 0.025f, num2, (float)num);
			return;
		}
		this.g_fWaitTime = g_fWaitTime;
	}

	// Token: 0x06000539 RID: 1337 RVA: 0x0000C7C4 File Offset: 0x0000A9C4
	[Token(Token = "0x6000539")]
	[Address(RVA = "0x181D7C0", Offset = "0x181C7C0", VA = "0x18181D7C0")]
	public AI_GhostD_Lightning()
	{
	}
}
