tModLoader How do I make my sword give the player a buff after hitting an enemy?

Abismuth

Terrarian
I've been making my melee item, and I want it to give the player a regeneration buff after hitting an enemy. Please help.
 
In the item, you can use the OnHitNPC() hook which provides the player parameter. Then you can just do player.AddBuff(whatever)
 
Back
Top Bottom