public static void InflictStatus(Projectile inflicter, Status status, WorldObject target, Vector3 spawnPoint, Quaternion rotation) { // if it is not possible to add the status on the target, skip the rest if (!target || !target.CanAddStatus()) { return; } Status newStatusInstance = InstantiateStatus(status, spawnPoint, rotation); if (newStatusInstance) { newStatusInstance.InflictStatus(target, inflicter); } }