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

◆ IsNPCIndexImmuneToProjectileType()

static bool Terraria.Projectile.IsNPCIndexImmuneToProjectileType ( int projectileType,
int npcIndex )
inlinestatic

Definition at line 337 of file Projectile.cs.

338 {
339 return perIDStaticNPCImmunity[projectileType][npcIndex] <= Main.GameUpdateCount;
340 }
static uint[][] perIDStaticNPCImmunity
Definition Projectile.cs:82

References Terraria.Main.GameUpdateCount, and Terraria.Projectile.perIDStaticNPCImmunity.

Referenced by Terraria.Projectile.Damage().