From 65b43df93513d532470df3e8889ec8a8b1a58b6a Mon Sep 17 00:00:00 2001 From: Abdulmujeeb Raji Date: Wed, 13 Nov 2024 12:34:51 +0000 Subject: [PATCH] feat: geltana applies OnFire debuff to other players --- Content/Items/Weapons/Geltana.cs | 8 ++++++++ Utilities/WorldGenWorld.cs | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Content/Items/Weapons/Geltana.cs b/Content/Items/Weapons/Geltana.cs index 19d35be..8ffa87f 100644 --- a/Content/Items/Weapons/Geltana.cs +++ b/Content/Items/Weapons/Geltana.cs @@ -7,6 +7,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -46,5 +47,12 @@ namespace continuity.Content.Items.Weapons { target.AddBuff(BuffID.OnFire, 120); } + + public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo) + { + target.AddBuff(BuffID.OnFire, 120); + } + + } } diff --git a/Utilities/WorldGenWorld.cs b/Utilities/WorldGenWorld.cs index 851d1d1..e3cdf86 100644 --- a/Utilities/WorldGenWorld.cs +++ b/Utilities/WorldGenWorld.cs @@ -1,4 +1,4 @@ -//// DEBUG WorldGen System for testing +//// DEBUG WorldGen System for testing, uncomment this file during test. AND MUST REMEMBER TO RECOMMENT BEFORE COMMITING. //using Terraria; //using Terraria.ModLoader; //using Microsoft.Xna.Framework.Input;