public static CanBeHitByNPC ( Player player, NPC npc, int &cooldownSlot ) : bool | ||
player | Player | |
npc | NPC | |
cooldownSlot | int | |
Результат | bool |
public static bool CanBeHitByNPC(Player player, NPC npc, ref int cooldownSlot)
{
foreach (ModPlayer modPlayer in player.modPlayers)
{
if (!modPlayer.CanBeHitByNPC(npc, ref cooldownSlot))
{
return false;
}
}
return true;
}