MOD HELP: Making vanilla enemies inflict an additional Debuff and others

So I am starting on this project to buff the Underworld a bit but I still can't figure out how to make any vanilla enemies inflict a Debuff. For instance, I wanted Lava Slimes to inflict On Fire and Hellbats to inflict Broken Armor.

Also, I wanted my custom enemy to shoot Death Lasers that can have a chance of 1/10 to inflict a custom Debuff and a 5/10 chance of inflicting Onfire!
 
Use a GlobalNPC class and override your vanilla enemy's OnHitNPC hook then add a player.addBuff method.
 
Back
Top Bottom