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

◆ CanBeHitByNPC()

virtual bool Terraria.ModLoader.ModNPC.CanBeHitByNPC ( NPC attacker)
inlinevirtual

Allows you to determine whether a friendly NPC can be hit by an NPC. Return false to block the attacker from hitting the NPC, and return true to use the vanilla code for whether the target can be hit. Returns true by default.

Parameters
attacker
Returns

Definition at line 444 of file ModNPC.cs.

445 {
446 return true;
447 }