public override bool PreAI(Projectile projectile) { var mproj = Info(projectile); if (!mproj.FirstTick) { mproj.FirstTick = true; // Get effect values if (projectile.owner != 255 && projectile.friendly && projectile.owner == Main.myPlayer) { mplr = Main.LocalPlayer.GetModPlayer <ModifierPlayer>(); mplreffects = Main.LocalPlayer.GetModPlayer <PlayerEffects>(); if (mplr.GetEffect <ShadowPartnerEffect>().isActive&& !mplreffects.initializeShadowProjectile) { mplreffects.initializeShadowProjectile = true; Main.LocalPlayer.GetModPlayer <PlayerEffects>().createShadowProjectile(projectile); } else { mplreffects.initializeShadowProjectile = false; } } } return(base.PreAI(projectile)); }
//################################################################################################################ //PercentBossDamage call - PvE public void PercentBossDamage(NPC target, ref int damage) { mplr.GetEffect <PercentBossDamageEffect>().setBossDamage(target, ref damage); }