public static CanDamage ( Projectile projectile ) : bool | ||
projectile | Projectile | |
Результат | bool |
public static bool CanDamage(Projectile projectile)
{
if (projectile.modProjectile != null && !projectile.modProjectile.CanDamage())
{
return false;
}
foreach (var hook in HookCanDamage)
{
if (!hook(projectile))
{
return false;
}
}
return true;
}