From 6161d1cf91c842d18b0b08235dd746dd42663ecd Mon Sep 17 00:00:00 2001 From: Amber Sienna Date: Mon, 23 Mar 2020 15:26:41 +0000 Subject: [PATCH] why is mp such a meme --- Projectiles/Summon/MiniGuardianAttack.cs | 12 ++++++------ Projectiles/Summon/MiniGuardianDefense.cs | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Projectiles/Summon/MiniGuardianAttack.cs b/Projectiles/Summon/MiniGuardianAttack.cs index da248a5972..8e0bc1a0ff 100644 --- a/Projectiles/Summon/MiniGuardianAttack.cs +++ b/Projectiles/Summon/MiniGuardianAttack.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Summon { public class MiniGuardianAttack : ModProjectile { - private int ai = -1; + private int ai = 3; private void updateDamage(int type) { Player player = Main.player[projectile.owner]; @@ -32,15 +32,15 @@ namespace CalamityMod.Projectiles.Summon public override void ReceiveExtraAI(BinaryReader reader) { - ai = reader.ReadInt32(); + if (projectile.owner != Main.myPlayer) + ai = reader.ReadInt32(); } private void AI(int type, float num535, float num536, Player player) { - if (Main.myPlayer != projectile.owner) - return; - updateDamage(type); - switch (type) + if (Main.myPlayer == projectile.owner) + updateDamage(type); + switch (ai) { case 1: //offensive bab (profaned soul artifact) case 2: //Empowered bab WEEEEEEEEEE (profaned soul crystal) diff --git a/Projectiles/Summon/MiniGuardianDefense.cs b/Projectiles/Summon/MiniGuardianDefense.cs index 547f50fa5e..ac47a33419 100644 --- a/Projectiles/Summon/MiniGuardianDefense.cs +++ b/Projectiles/Summon/MiniGuardianDefense.cs @@ -32,15 +32,15 @@ namespace CalamityMod.Projectiles.Summon public override void ReceiveExtraAI(BinaryReader reader) { - ai = reader.ReadInt32(); + if (projectile.owner != Main.myPlayer) + ai = reader.ReadInt32(); } private void AI(int type, float num535, float num536, Player player) { - if (Main.myPlayer != projectile.owner) - return; - updateDamage(type); - switch (type) + if (Main.myPlayer == projectile.owner) + updateDamage(type); + switch (ai) { case 1: //defensive bab (profaned soul artifact) case 2: //Empowered bab WEEEEEEEEEE (profaned soul crystal)