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

◆ GetImmuneTime()

void Terraria.NPC.GetImmuneTime ( int fromWho,
int time )
inline

Definition at line 89226 of file NPC.cs.

89227 {
89228 if (fromWho == -1)
89229 {
89230 for (int i = 0; i < immune.Length; i++)
89231 {
89232 immune[i] = time;
89233 }
89234 }
89235 else if (fromWho >= 0 && fromWho < immune.Length)
89236 {
89237 immune[fromWho] = time;
89238 }
89239 }
int[] immune
Definition NPC.cs:441