public void StartAbilityCharge(Player mountedPlayer)
{
if (Main.myPlayer == mountedPlayer.whoAmI)
{
if (this._type != 9)
return;
float X = Main.screenPosition.X + (float)Main.mouseX;
float Y = Main.screenPosition.Y + (float)Main.mouseY;
float ai0 = X - mountedPlayer.position.X;
float ai1 = Y - mountedPlayer.position.Y;
Projectile.NewProjectile(X, Y, 0.0f, 0.0f, 441, 0, 0.0f, mountedPlayer.whoAmI, ai0, ai1);
this._abilityCharging = true;
}
else
{
if (this._type != 9)
return;
this._abilityCharging = true;
}
}