public void NinjaDodge()
{
this.immune = true;
this.immuneTime = 80;
if (this.longInvince)
this.immuneTime += 40;
for (int index1 = 0; index1 < 100; ++index1)
{
int index2 = Dust.NewDust(new Vector2(this.position.X, this.position.Y), this.width, this.height, 31, 0.0f, 0.0f, 100, new Color(), 2f);
Main.dust[index2].position.X += (float)Main.rand.Next(-20, 21);
Main.dust[index2].position.Y += (float)Main.rand.Next(-20, 21);
Main.dust[index2].velocity *= 0.4f;
Main.dust[index2].scale *= (float)(1.0 + (double)Main.rand.Next(40) * 0.00999999977648258);
Main.dust[index2].shader = GameShaders.Armor.GetSecondaryShader(this.cWaist, this);
if (Main.rand.Next(2) == 0)
{
Main.dust[index2].scale *= (float)(1.0 + (double)Main.rand.Next(40) * 0.00999999977648258);
Main.dust[index2].noGravity = true;
}
}
int index3 = Gore.NewGore(new Vector2((float)((double)this.position.X + (double)(this.width / 2) - 24.0), (float)((double)this.position.Y + (double)(this.height / 2) - 24.0)), new Vector2(), Main.rand.Next(61, 64), 1f);
Main.gore[index3].scale = 1.5f;
Main.gore[index3].velocity.X = (float)Main.rand.Next(-50, 51) * 0.01f;
Main.gore[index3].velocity.Y = (float)Main.rand.Next(-50, 51) * 0.01f;
Main.gore[index3].velocity *= 0.4f;
int index4 = Gore.NewGore(new Vector2((float)((double)this.position.X + (double)(this.width / 2) - 24.0), (float)((double)this.position.Y + (double)(this.height / 2) - 24.0)), new Vector2(), Main.rand.Next(61, 64), 1f);
Main.gore[index4].scale = 1.5f;
Main.gore[index4].velocity.X = (float)(1.5 + (double)Main.rand.Next(-50, 51) * 0.00999999977648258);
Main.gore[index4].velocity.Y = (float)(1.5 + (double)Main.rand.Next(-50, 51) * 0.00999999977648258);
Main.gore[index4].velocity *= 0.4f;
int index5 = Gore.NewGore(new Vector2((float)((double)this.position.X + (double)(this.width / 2) - 24.0), (float)((double)this.position.Y + (double)(this.height / 2) - 24.0)), new Vector2(), Main.rand.Next(61, 64), 1f);
Main.gore[index5].scale = 1.5f;
Main.gore[index5].velocity.X = (float)(-1.5 - (double)Main.rand.Next(-50, 51) * 0.00999999977648258);
Main.gore[index5].velocity.Y = (float)(1.5 + (double)Main.rand.Next(-50, 51) * 0.00999999977648258);
Main.gore[index5].velocity *= 0.4f;
int index6 = Gore.NewGore(new Vector2((float)((double)this.position.X + (double)(this.width / 2) - 24.0), (float)((double)this.position.Y + (double)(this.height / 2) - 24.0)), new Vector2(), Main.rand.Next(61, 64), 1f);
Main.gore[index6].scale = 1.5f;
Main.gore[index6].velocity.X = (float)(1.5 + (double)Main.rand.Next(-50, 51) * 0.00999999977648258);
Main.gore[index6].velocity.Y = (float)(-1.5 - (double)Main.rand.Next(-50, 51) * 0.00999999977648258);
Main.gore[index6].velocity *= 0.4f;
int index7 = Gore.NewGore(new Vector2((float)((double)this.position.X + (double)(this.width / 2) - 24.0), (float)((double)this.position.Y + (double)(this.height / 2) - 24.0)), new Vector2(), Main.rand.Next(61, 64), 1f);
Main.gore[index7].scale = 1.5f;
Main.gore[index7].velocity.X = (float)(-1.5 - (double)Main.rand.Next(-50, 51) * 0.00999999977648258);
Main.gore[index7].velocity.Y = (float)(-1.5 - (double)Main.rand.Next(-50, 51) * 0.00999999977648258);
Main.gore[index7].velocity *= 0.4f;
if (this.whoAmI != Main.myPlayer)
return;
NetMessage.SendData(62, -1, -1, "", this.whoAmI, 1f, 0.0f, 0.0f, 0, 0, 0);
}