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

◆ CanHitNPC()

virtual bool Terraria.ModLoader.ModNPC.CanHitNPC ( NPC target)
inlinevirtual

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

Parameters
target
Returns

Definition at line 434 of file ModNPC.cs.

435 {
436 return true;
437 }