TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ HasBuff()

bool Terraria.NPC.HasBuff ( int type)
inline

Returns whether or not this NPC currently has a (de)buff of the provided type.

Definition at line 112511 of file NPC.cs.

112512 {
112513 return FindBuffIndex(type) != -1;
112514 }
int FindBuffIndex(int type)
Definition NPC.cs:106664
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
Definition NPC.cs:990