WORKED! thanks budy, buuuut... when the mod is with the buff, he turns invisible
That could have multiple causes. Try this and see if it works:
Code:
public override bool PreDraw(NPC npc, SpriteBatch spriteBatch, Color drawColor)
{
if(npc.hasBuff(mod.BuffType("Frost")) != -1)
{
Vector2 drawPos = new Vector2(npc.position.X,npc.position.Y);
spriteBatch.Draw(mod.GetTexture("Extras/Frozen"), drawPos, null, Color.White, 0f, new Vector2(28f, 28f), 1f, SpriteEffects.None, 0f);
return false;
}
return true;
}