Definition at line 37032 of file Projectile.cs.
37033 {
37034 int num = (int)
ai[0] - 1;
37035 if (num != -1 && (!Main.npc[num].CanBeChasedBy(
this) ||
localNPCImmunity[num] != 0))
37036 {
37038 num = -1;
37039 }
37040 if (num == -1)
37041 {
37044 {
37048 }
37049 }
37050 if (num != -1)
37051 {
37056 {
37059 }
37061 {
37063 frame = Main.rand.Next(Main.projFrames[
type]);
37064 }
37065 }
37066 else
37067 {
37069 }
37070 }
Vector2 DirectionTo(Vector2 Destination)
NPC FindTargetWithinRange(float maxRange, bool checkCanHit=false)
References Terraria.Main.npc, Terraria.Main.projFrames, Terraria.Main.rand, and System.type.