Fixed GFB Animosity bubbles not inflicting Poison

This commit is contained in:
CongratsIsTrash committed 2024-02-17 14:20:29 -05:00
1 parent df7093ec4b
commit 602edd467f
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -173,7 +173,7 @@ namespace CalamityMod.Items.Weapons.Ranged
for (int p = 0; p < 3; p++)
{
Vector2 poisonVelocity = velocity.RotatedByRandom(MathHelper.ToRadians(p * 2f));
Projectile poisonHate = Projectile.NewProjectileDirect(source, nuzzlePos, poisonVelocity, ModContent.ProjectileType<AcidicSaxBubble>(), damage, knockback, player.whoAmI, 0f, 1f);
Projectile poisonHate = Projectile.NewProjectileDirect(source, nuzzlePos, poisonVelocity, ModContent.ProjectileType<AcidicSaxBubble>(), damage, knockback, player.whoAmI, 0f, 0f, 1f);
poisonHate.DamageType = DamageClass.Ranged;
poisonHate.extraUpdates += 1;
poisonHate.penetrate = 1;
+2 -2
View File
@@ -137,14 +137,14 @@ namespace CalamityMod.Projectiles.Magic
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(ModContent.BuffType<Irradiated>(), 180);
if (Projectile.ai[1] == 1f) // For GFB Animosity
if (Projectile.ai[2] == 1f) // For GFB Animosity
target.AddBuff(BuffID.Poisoned, 180);
}
public override void OnHitPlayer(Player target, Player.HurtInfo info)
{
target.AddBuff(ModContent.BuffType<Irradiated>(), 180);
if (Projectile.ai[1] == 1f) // For GFB Animosity
if (Projectile.ai[2] == 1f) // For GFB Animosity
target.AddBuff(BuffID.Poisoned, 180);
}